Part Number Hot Search : 
TPCP8202 B250C 101J1 STK441 40PT12A AD9847A SIPS6XX T0805
Product Description
Full Text Search
 

To Download 71M6515H-IGTF Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  71m6515h energy meter ic data sheet july 2011 page: 1 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand general description the 71m6515h is a high-accuracy analog front-end (afe) ic that provides measurements for 3-quadrant 3-phase metering. the combination of a 21-bit sigma-delta a/d converter with a six-input analog front-end, a thermally compensated high-precision reference, and a compute engine results in high accuracy and wide dynamic range. our single converter technology? reduces cross talk and cost. this ic also provides rtc and battery backup for time-of-use (tou) metering. host pro- cessor current voltage ssi uart, irqz voltage reference compute engine rtc battery ram teridian 71m6515h dio control figure 1: meter block diagram as shown in the block diagram (figure 1), the host processor communicates with the 71m6515h through a uart interface using the programmable irqz interrupt. the 71m6515h calculates and accu- mulates meter measurements for each accumulation interval. a high-speed synchronous serial port (ssi) is provided to facilitate high-end metering. integrated rectifying functions on the battery-backup circuit enable minimal external component usage and minimum back-up current. also, eight multipurpose pins are provided for control of peripherals. features high accuracy ? < 0.1% wh accuracy over 2000:1 range ? exceeds iec 62053/ansic 12.20 specifications ? up to 10ppm/ c precision ultra-stable voltage reference ? single converter technology reduces cross talk and power consumption ? six sensor inputsreferenced to v3p3 ? compatible with cts, resistive shunts and rogowski coil sensors ? digital temperature compensation ? sag detection ? measures wh, varh, vah, vrms, irms, v-to-v phase and load angle on each phase ? four-quadrant metering. ? four low-jitter pulse outputs from selectable measurements ? four pulse count registers ? selectable default status for pulse pins ? same calibration data for 46hz to 64hz line frequency ? broad ct phase compensation (7deg) battery backup ? powers real-time clock during power supply outage ? compatible with li-ion, nicd, or super capacitor ? battery backup current 2a typical at 25c external data interface ? uart control interface, two selectable data rates ? 8 general-purpose i/o pins with alarm capability ? 5 or 10mhz selectable high-speed synchronous serial output for dsp interface ? irq output signal for alarms and end of measurement intervals ? alarms on voltage sag, overvoltage, overcurrent low system cost ? power consumption 30mw at 3.3v typical ? real-time clock with temperature compensation ? built-in power-fault detection ? single 32khz crystal time base ? single-supply operation (3.3v) ? 64-lead lqfp package single converter technology is a registered trademark of maxim integrated products, inc. 19-5361; rev 7/11 downloaded from: http:///
page: 2 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 ? adc converter + - vref ia va ib vb mux vref resetz vflt 64 pins -- 64 tqfp uart tx rx vx fault detect gndd v3p3a v3p3d vbat volt reg 2.5v to logic v2p5 tmuxout test gnda ic temp march 3, 2008 ck_gen vref vc vx gnda gndd v3p3a gndd v3p3 xin xout osc (32khz) cktest system clocks rtc data ram battery backup d6 d7 ssclk ssdata sfr srdy ssi interface muxsync calculations output values: alarms: whr (a, b, c) varhr (a, b, c) vahr (a, b, c) vrms (a, b, c) irms (a, b, c) iphase (a, b, c) frequency (selected phase) temperature voltage sag (a, b, c) zero cross (selected phase) over-voltage (all) over-current (all) d0-d7 state change control d0 d1 d2 d3 d4 pulsew pulser vbias (1.5v) vbias (1.5v) d5 reserved irqz 21 i/o control change of state (d0...d7) gndd pulse4 pulse3 pulse_init baudrate misc figure 2 : ic functional block diagram electrical specifications downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 3 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand absolute maximum ratings supplies and ground pins: v3p3d, v3p3a ? 0.5v to 4.6v |v3p3d C v3p3a| 0v to 0.5v vbat - 0.5v to 4.6v gndd - 0.5v to +0.5v analog output pins: vref - 1ma to 1ma, - 0.5v to v3p3a+0.5v v2p5 - 1ma to 1ma, - 0.5 to 3.0v analog input pins: ia, va, ib, vb, ic, vc - 0.5v to v3p3a+1.0v vflt, vx - 0.5v to v3p3a+0.5v xin, xout - 0.5v to 3.0v digital input pins: rx - 0.5v to 3.6v d0d7 - 0.5v to 6v all other pins - 0.5v to v3p3d+0.5v operating junction temperature (peak, 100ms) 140 c operating junction temperature (continuous) 125 c storage temperature ? 45 c to 165 c solder temperature C 10 second duration 250 c esd stress pins ia, va, ib, vb, ic, vc, rx, tx 6kv all other pins 2kv stresses beyond absolute maximum ratings may cause permanent damage to th e device. these are stress ratings only and function al operation at these or any other conditions beyond those indicated under recomm ended operating conditions is not implied. exposure to absolute - maximum - rated conditions for extended periods may affect device reliability. all v oltages are with respect to gnda. recommended operating conditions parameter condition min typ max unit 3.3v supply voltage ( v3p3a, v3p3d ) + normal operation 3.0 3.3 3.6 v battery backup 0 3.8 v vbat no battery externally connect to v3p3d battery backup 2.0 3.8 v operating temperature - 40 85 oc + v3p3a and v3p3d should be shorted together on the circuit board. gndd and gnda s hould also be shorted on the circuit board. downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 4 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand logic levels parameter condition min typ max unit digital high - level input voltage, v ih 2 v3p3d v digital low - level input voltage, v il ? 0.3 0.8 v digital high - level output voltage v oh i load = 1ma v3p3d C 0.4 v3p3d v i load = 15ma v3p3d - 0.6 1 v digital low - level output voltage v ol i load = 1ma 0 0.4 v i load = 15ma 0.8 1 v input pull - up current, i il resetz e_rxtx, e_isync/brkrq e_rst other digital inputs vin=0v 10 10 10 -1 100 100 100 +1 a a a a input pull down current, i ih test other digital inputs vin=v3p3d 10 -1 100 +1 a a 1 guaranteed by design; not production tested. supply current parameter condition min typ max unit v3p3a + v3p3d normal operation, v3p3a=v3p3d =3.3v vbat=3.6v 8.8 11.5 ma v3p3a current 3.7 4.7 ma v3p3d current 5.1 6.8 ma vbat current - 300 300 na vbat current, vbat=3.6v battery backup, 25c v3p3a=v3p3d =0v f osc = 32khz 85c 2 4 a 4 12 1 a 1 guaranteed by design; not production tested. vref downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 5 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand parameter condition min typ max unit vref output voltage, vnom(25) ta = 25 oc 1.193 1.195 1.197 v vref output impedance i load = 10a, - 10a 2.5 k vnom definition 2 vnom(t) = vref(22) + (t - 22)tc1 + (t - 22) 2 tc2 v vref(t) deviation from vnom(t) )40|, 22 max(| 10 )( )( 6 ? ? t vnom t vnom t vref ta = - 40oc to +85oc , for 71m6515h - igt/f - 10 1 +10 1 ppm/oc ta = - 40oc to +85oc, for 71m6515h - igtw/f - 40 1 +40 1 ppm/oc vref aging 25 ppm/year 1 guaranteed by design ; not production tested. 2 this relationship describes the nominal behavior of vref at different temperat ures. the values of tc1 and tc2 are device specific in general and are programmed into the device at manufacturing. downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 6 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand 2.5v voltage regulator parameter condition min typ max unit voltage overhead v3p3d - v2p5 reduce v3p3 until v2p5 drops 200mv 440 mv psrr v2p5 / v3p3d resetz =1, i load =0 -3 +3 mv/v rtc parameter condition min typ max unit range for date 2000 -- 2255 year resetz parameter condition min typ max unit reset pulse width 5 s reset pulse fall time 1 1 s 1 guaranteed by design; not production tested. crystal oscillator parameter condition min typ max unit maximum output power to crystal 4 1 w xin to xout capacitance 3 pf capacitance to dgnd xin xout 5 5 pf pf watchdog rtc_ok threshold 25 khz temperature sensor parameter condition min typ max unit nominal sensitivity (s n ) 4 t a =25 o c, t a =85oc nominal relationship: n(t)= s n *t+n n - 900 lsb/ oc nominal offset (n n ) 4 40000 0 lsb temperature error, relative to 25 o c error n s n tn t err ))25( )(( )25 ( ? ? ? = t a = - 40 o c to +85 oc -3 1 +3 1 oc 1 guaranteed by design ; not production tested. downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 7 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand pulse generator timing specifications parameter condition min typ max unit pulsew, pulser maximum rate apulse=2 31 - 1, wrate=2 15 -1 7.56 khz pulse3, pulse4 maximum rate pulse3=2 31 - 1, wrate=2 15 -1 0.15 khz pulse count frequency all pulse outputs 0.15 khz thermal characteristics parameter condition value unit thermal resistance , junction to ambient (r ja ) air velocity 0 m/s. part soldered to pcb. 63 .7 c/w uart host interface parameter condition min typ max unit baud rate 19.2 - 38.4 kbaud character set binary data format 8n1 byte - to - byte delay (6515h times out after maximum delay) host sending data to 6515h 10 20 ms byte - to - byte delay 6515h sending data to host 0 0.1 ms response time to read command 6515h has data ready 0.5 2 ms response time to read command when 71m6515h is post - processing data data not ready ce_only = 1 ce_only = 0 and vah_select = 0 ce_only = 0 and vah_select = 1 40 80 350 ms ms ms adc converter, v3p3 referenced parameter condition min typ max unit usable input range (vin - v3p3a ) - 250 250 mv peak voltage to current cross talk: ) cos( * 10 6 vcrosstalk vin vin vcrosstalk ? vin = 200mv peak, 65hz, on va, vb, or vc vcrosstalk = largest measurement on ia, ib, or ic - 10 1 +10 1 v/v thd (first 10 harmonics) 250mv - pk 20mv - pk vin=65hz, 64kpts fft, blackman - harris window - 75 - 90 db db input impedance vin=65hz 40 90 k downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 8 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand temperature coefficient of input impedance vin=65hz 1.7 /c lsb size 355 nv/lsb digital full scale + 884736 lsb adc gain error vs. %power supply variation 3.3/ 3 3 100 / 357 10 6 a p v v nv nout in pk ? ? vin=200mv pk, 65hz v3p3a=3.0v, 3.6v 50 ppm/ % input offset (vin - v3p3a ) - 10 +10 mv 1 guaranteed by design; not production tested. recommended external components name from to function value unit c1 v3p3a agnd bypass capacitor for 3.3v supply 0.1 20% f c2 v3p3d dgnd bypass capacitor for 3.3v supply 0.1 20% f xtal xin xout 32.768khz crystal C electrically similar to ecs .327 - 12.5 - 17x or vishay xt26t, load capaci tance 12.5pf 32.768 khz cxs xin agnd load capacitor for crystal (depends on crystal specs and board parasitics). 27 10% pf cxl xout agnd 27 10% pf c2p5 v2p5 dgnd bypass capacitor for v2p5 0.1 20% f footnotes: 1 this spec is guaranteed, has been verified in production samples, but is not measur ed in production. 2 this spec is guaranteed, has been verified in production samples, but is measured in pr oduction only at dc. 3 this spec is measured in production at the limits of the specified operating temperature. 4 this spec defines a nominal relationship rather than a measured parameter . correct circuit operation is verified with other s pecs that use this nominal relationship as a reference downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 9 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand pin configuration and pin function teridian 71m6515h-igt or 71m6515h-igtw gndd reserved tmuxout /rtm tx ssclk cktest v3p3d ssdata sfr reserved pulse3 pulse4 33 64 gndd resetz v2p5 vbat rx d0 irqz d6d5 d7 d4 uartcsz pulser pulsew baud_rate reserved d1 mux_sync srdy gndd reserved vb vref xin gnda v3p3a xout gnda ia vc vflt vx ic va ib 1 17 23 4 5 67 8 9 1011 12 13 14 1516 1819 2021 22 24 2325 26 27 28 29 30 31 32 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 6362 61 6059 58 57 56 55 54 53 52 51 50 49 pulse_init reservedreserved reserved reservedreserved reserved d2d3 reservedreserved reserved reserved reserved reserved reserved gndd pins marked reserved should be left unconnected during normal use. downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 10 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand analog pin description name pin no. type circuit description ia, ib, ic 56 55 54 i 6 line current sense inputs: voltage inputs to the internal a/d conver ter. typically, they are connected to the output of a current transformer. the inp ut is referenced to v3p3a. unused pins must be tied to v3p3a. va, vb, vc 53 52 51 i 6 line voltage sense inputs: voltage inputs to the internal a/d conver ter. typically, they are connected to the output of a resistor divider. the input is referenced to v3p3a. unused pins must be tied to v3p3a. vflt 59 i 7 power fault input. this pin must be tied to v3p3a. vx 58 i 6 auxiliary input (not used). this pin should be tied to vref. vref 57 i/o 9 voltage reference for the adc. xin, xout 61 63 i 8 crystal inputs: a 32768hz crystal should be connected across these pins. typically, a 15pf capacitor is also connected from each pin to gnda . see the datasheet of the crystal manufacturer for details. pin types: p = power, o = output, i = input, i/o = input/outp ut the circuit number denotes the equivalent circuit, as specified un der i/o equivalent circuits. digital pin description unless otherwise indicated, all inputs and outputs are standard cm os. inputs do not have internal pull - ups or pull - downs. name pin no. type circuit description cktest 6 i/o 4 clock pll output. can be enabled and disabled by ckout_dsb (see status mask). d0 d1 d2 d3 d4 d5 d6 d7 42 21 22 23 37 38 39 33 i/o 3, 4 input/output pins 0 through 7. these pins must be terminated to v3p3d or ground if configured as input pins. d0 through d7 are high impedance after reset or power - up and are con figured as outputs and driven low 140ms after resetz goes high. pulse4 15 o 4 the fourth pulse generator output pulse3 14 o 4 the third pulse generator output pulse_init 40 i 3 the pulse output initial power - up voltage (0: 0v, 1: 3.3v), default is 1. this pin must be terminated to v3p3d or ground. baud_rate 16 i 3 the uart baud rate (1: 38.4kbd, 0: 19.2kbd). this pin must be terminated to v3p3d or ground. irqz 41 o 4 interrupt output, low active. a falling edge indicates the end of a measurement frame, as well as alarms. rises when status word i s read. muxsync 25 o 4 internal signal. muxsync falls at the beginning of each conversion cycle (multiplexer frame). resetz 47 i 1 chip reset: input pin with internal pull - up resistor, used to reset the chip into a known state. for normal operation, this pin is set to 1. to reset the chip, this pin is driven to 0 for 5 microseconds. no externa l reset circuitry is necessary for power - up reset. downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 11 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand name pin no. type circuit description uartcsz 34 i 3 enables the uart when 0. the uart is disabled when this pin is s et to 1. a positive pulse on this pin will reset the uart. this pin must be terminated to ground. srdy sfr ssclk ssdata 24 9 5 8 i o o o 3 4 4 4 high - speed synchronous interface (ssi). the srdy input should be tied to ground. ssi frame pulse output, one ssclk wide. ssi clock output (5mhz or 10mhz selectable). ssi data output, changes on the rising edge of ssclk. rx 44 i 3 uart serial interface receiver input. the voltage at this pin must not exceed 3.6v . this pin must be terminated to v3p3d or ground. tx 4 o 4 uart serial interface transmitter output. tmuxout 3 o 4 digital output test multiplexer. controlled by tmux[ 2:0]. pulser pulsew 36 35 o o 4 4 selectable pulse output (default: varh pulse). selectable pulse output (default: wh pulse). power/ground pin description name pin no. type description gnda 49,60 p analog ground: this pin should be connected directly to the ground plane . gndd 1,27, 48,62 p digital ground: these pins must be connected directly to the ground pl ane. v3p3a 50 p analog power: a 3.3v analog power supply should be connected to this pin. v3p3d 7 p digital power supply: a 3.3v digital power supply should be connected to this pin. vbat 45 p battery backup power supply. a battery or super - capacitor is to be connected between vbat and gndd. if no battery is used, connect vbat to v3p3d. v2p5 46 o output of the 2.5v regulator. a 0.1f capacitor should be connected from this pin to gnd. pin types: p = power, o = output, i = input, i/o = input/outp ut the circuit number denotes the equivalent circuit, as specified unde r i/o equivalent circuits. reserved pins pins labeled reserved are not to be connected. name pin no. description reserved 2,10,11,12, 13,17,18,19, 20,26,28,29, 30,31,32,43, 64 do not connect these pins! downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 12 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand i/o equivalent circuits digital input equivalent circuit type 1: standard digital input or pin configured as dio input with internal pull-up gndd 110k v3p3d cmos input v3p3d digital input pin digital input type 2: pin configured as dio input with internal pull-down gndd 110k gndd cmos input v3p3d digital input pin digital input type 3: standard digital input or pin configured as dio input gndd cmos input v3p3d digital input pin cmos output gndd v3p3d gndd v3p3d digital output equivalent circuit type 4: standard digital output or pin configured as dio output digital output pin to mux gnda v3p3a analog input equivalent circuit type 6 : adc input analog input pin comparator input equivalent circuit type 7: comparator input gnda v3p3a to comparator comparator input pin vref equivalent circuit type 9: vref from internal reference gnda v3p3a vref pin v2p5 equivalent circuit type 10: v2p5 from internal reference gndd v3p3d v2p5 pin vbat equivalent circuit type 12: vbat power gndd power down circuits vbat pin oscillator equivalent circuit type 8: oscillator i/o to oscillator gndd v3p3d oscillator pin downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 13 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand typical performance characteristics figure 3 : wh accuracy, 0.3a - 200a/240v figure 4 : varh accuracy for 0.3a to 200a/240v performance 200 100 30 25 10 3 1 0.3 - 0.2 - 0.15 - 0.1 - 0.05 0 0.05 0.1 0.15 0.2 0.1 1 10 100 1000 %error a 0 deg 60 deg - 60 deg 180 deg 200 100 30 25 10 3 1 0.3 - 0.2 - 0.15 - 0.1 - 0.05 0 0.05 0.1 0.15 0.2 0.1 1 10 100 1000 % error a 90 deg 150 deg 270 deg downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 14 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand measured at current distortion amplitude of 40% and voltage distortion amplitude of 1 0%. figure 5 : meter accuracy over harmonics at 240v, 30a figure 6 : typical vah accuracy for vah using vector method -8 -7 -6 -5 -4 -3 -2 -1 0 1 2 1 3 5 7 9 11 13 15 17 19 21 23 25 harmonic error [%] 50hz harmonic data 60hz harmonic data - 0.2 - 0.15 - 0.1 - 0.05 0 0.05 0.1 0.15 0.2 0.1 1 10 100 1000 error [%] current [a] performance for apparent energy (vah) downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 15 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand functional descripti on theory of operation the 71m6515h integrates the primary functional blocks required to implement a solid - state electricity meter front end. included on - chip are an analog front end (afe), a digital computation engine (ce), a voltage r eference, a real time clock, and i/o pins. various current sensor technologies are supported including current transf ormers (ct), resistive shunts, and rogowski ( di/dt) coils. in a typical application, the 71m6515h sequentially digitizes the vol tage inputs on pins ia, va, ib, vb, ic, vc and performs calculations to measure active energy (wh), reactive energy (varh), and app arent energy (vah). in addition to these measurement functions, the real time clock function allows the device t o record time of use (tou) metering information for multi - rate applications. the 71m6515h contains a temperature - trimmed ultra - precise voltage r eference, and the on - chip digital temperature com pen - sation mechanism includes a temperature sensor and associated controls f or correction of unwanted temperature effects on measurement. rtc accuracy can be greatly improved by supplying correction coeffic ients derived from crystal characterization. the combination of both features enables designers to produce el ectricity meters with exceptional accuracy over the industrial temperature range. meter equations the 71m6515h implements the equations in table 1 . register equ specifies the equation to be used. in one sample time, each of the six inputs is converted and the selected equation updated. in a typical application , ia, ib, ic are connected to current transformers that sense the current on each phase of the line voltage. va, vb , and vc are typically connected to voltage sensors (resistor dividers) with respect to neutral. neutral is to be connected to v3p3a, the analog supply voltage. neutral is the zero reference for all analog measurements. equ watt & var formula application channels used from mux sequence mux state: 0 1 2 3 4 5 0 va ia 1 element, 2w 1? ia va - - - - 1* va(ia - ib)/2 1 element, 3w 1? ia va ib - - - 2 va ia + vb ib 2 element, 3w 3 ?delta ia va ib vb - - 3* va (ia - ib)/2 + vc ic 2 element, 4w 3? delta ia va ib - ic vc 4* va(ia - ib)/2 + vb(ic - ib)/2) 2 element, 4w 3? wye ia va ib vb ic - 5 va ia + vb ib + vc ic 3 element, 4w 3? wye ia va ib vb ic vc note: equations 1*, 3*, 4* available only when image = 00 (ct mode). table 1 : meter equations table 2 shows how the elements of the meter are mapped for the six possib le equations. downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 16 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand equ watt & var formula ( wsum / varsum ) element output mapping w0sum/ var0sum w1sum/ var1sum w2sum/ var2sum i0sq sum i1sq sum i2sq sum 0 va ia (1 element, 2w 1 ) va*ia - - ia - - 1 va*(ia - ib)/2 (1 element, 3w 1 ) va*(ia - ib)/2 va*ib - ia - ib ib - 2 va*ia + vb*ib (2 element, 3w 3 delta) va*ia vb*ib - ia ib - 3 va*(ia - ib)/2 + vc*ic (2 element, 4w 3 delta) va*(ia - ib)/2 - vc*ic ia - ib ib ic 4 va*(ia - ib)/2 + vb*(ic - ib)/2 (2 element, 4w 3 wye) va*(ia - ib)/2 vb*(ic - ib)/2 ia - ib ic - ib ic 5 va*ia + vb*ib + vc*ic (3 element, 4w 3 wye) va*ia vb*ib vc*ic ia ib ic table 2 : meter element output mapping analog front end a/d converter (adc) a single delta - sigma a/d converter (adc) digitizes the inputs to the device. the resolution of the adc is 21 bits. the adc operates at 5mhz oversampling rate and places the digital results in ce memory. each analog input is sampled at 2520hz. once each accumulation interval, it refreshes the temperature value that is placed in the temp_raw register. the analog re - ference for all inputs is v3p3a, i.e. the adc processes voltages b etween the input pins and v 3p3a. voltage reference the device includes an on - chip precision bandgap voltage reference that incorporates auto - zero techniques as well as production trims to minimize errors caused by component mismatch and drift. the result is a voltage output with a predictable temperature coefficient. the ce compensates for temperature characteristics of the voltage refere nce by modifying the gain applied to the v and i channels based on the coefficients ppmc and ppmc2 . see the section temperature compensation for details. digital computation the six adc outputs are processed and accumulated digitally. the default product summation is based on 42*60 (if the sum_cycles register is set to 60) samples per accumulation interval. at th e end of each accumulation interval , a ready interrupt (irqz) is signaled (if enabled with the ready bit in stmask ), indicating that fresh data is available to the host. for instance, if sum_cycles =30, the irqz rate will be 2hz (500ms). a dedicated 32 - bit computation engine (ce) performs the precision computations ne cessary to accurately measure energy . internal ce calculations include frequency - insensitive offset cancellation on all six channels and a frequency inse nsitive 90 phase shifter for var calculations. the ce also includes lpf smoothing filters afte r each product and squaring circuit to attenuate ripple and eliminate beat frequencies between the power line funda mental and the accumulation time. the ce directly calculates watts, vars, v 2 , and i 2 and accumulates them for one interval. at the end of each ce computation cycle, the accumulated data are post - processed to calculate rms amplitudes, phase angles, and vah. when post - processing is complete, the irqz signal is activated. downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 17 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand the minimum combined cycle time for ce and post - processor is 400ms, which makes the maximum frequency for the irqz signal 2.5hz. if the 71m6515h is interfacing to an external dsp (typically, but not necessarily through the s si interface), the host may tu rn of f post - processing by setting the ce_only bit in the config word. this will permit setting sum_cycles below its recommended lower limit of 24. sum_cycles may then be reduced to 1, creating an accumulation in terval of only 42 samples. the outputs available in ce only mode are limited to temperature, freque ncy, voltage phases, input signal zero crossings, plus wsum and varsum for each phase and vsqsum, isqsum, and isqfrac t for each phase. pulse generators the chip contains four pulse generators connected to the pins pulsew , pulser , pulse3, and pulse4 that create low jitter pulses from 32 - bit data. the peak time jitter for pulsew and pulser is the 397s mux frame period, and is independent of the rate of the generator or the length of time the gener ator is moni tored. thus, if the pulse generator is monitored for 1 second, the peak jitter is 400ppm. after 10 seconds, the peak jitter is 40ppm. pulse3 and pulse4 are updated at a slower rate and have four times h igher jitter, i.e. 160ppm after 10 seconds. the average jitter is always zero. if it is attempted to drive either puls e generator faster than its maximum rate, it will simply output at its maximum rate without exhibiting any roll - over characteristics. pulse generator inputs may be from three sources: ? interna l (directly from the ce), pulsew and pulser only ? external (controlled by the host writing to registers apulsew, apulser, apulse3, apulse4 ) ? post - processed values the source is selected individually for each pulse output with the pulsew_src, pulser_s rc, puls e3_src, and pulse4_src registers. figure 7 shows internal pulse generation for the pulsew output selected by writing the value 35 into the pulsew_src register. pulsew_src 35: wsum 0: wsum 1: wasum 2: wbsum 3: wcsum 4: varsum 34: var2sum_e 36: apulsew host ce pulsew output post processor 35 34: var2sum_e figure 7 : internal pulse generation selected in the pulsew_src register downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 18 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand internal data is pulsed out during the accumulation interval immediately fol lowing its accumulation interval. post - processed values are pulsed out one accumulation interval after that. the pulse generator output rate depends on its input value, wrate , pulse_slow , and pulse_fast . additionally, its maximum pulse width (negative going pulse) is controlled by pulsewidth . high frequency pulses will have 50% duty cycle until their rate slows enough that their pulse width is limited b y pulsewidth . in internal and post - processed modes, the pulse rate, expressed as kh (wh per pulse) is given by the formula: pulse wh x wrate cycles sum in imax vmax kh / 5757 .1 _ 8_ ? ? ? = where vmax is t he meter voltage corresponding to an input voltage of 176mv (rms) at the va, vb, and vc input pins , imax is the meter current corresponding to an input voltage of 176mv (rms) at the ia, ib, and ic input pins, in_8 is the additional adc gain (1 or 8), as c ontrolled by the ia_x , ib_x and ic_x bits in the config register. x is the pulse speed factor determined from table 3. pulse_slow pulse_fast x 0 0 1.5*2 2 =6 0 1 1.5*2 6 =96 1 0 1.5*2 -4 =0.09375 1 (default) 1 (default) 1.5 table 3 : pulse speed factor x in external pulse mode, the pulse rate is given by the formula: rate(hz) = wrate * x * input * 35.82*10 - 12 , where input is the value in registers apulser, apulsew. apulse3 or apulse4, x is the pulse speed factor determined from table 3. external pulse generation can be seen as providing the raw voltage and current readings equival ent to v in *i in / lsb directly to the pulse generator. the maximum pulse rate is 7.56khz for pulsew and pulser , and 150hz for pulse3 and pulse4. in external pulse mode, the pulse generators load their data at the beginning of each ce accumul ation interval, preserving any partially implemented pulses from the previous interval. the source of data is controlled by the entries in the pulse_srcs register. pulser_srcs c ontains 8 - bit entries for each pulse source, pulsew , pulser , pulse3, and pulse4. see the register description for details. the procedure for accurate external pulse generation controlled by the host is: 1) respond to a ready interrupt by reading the accumulated values. 2) process the accumulated values. 3) write the processed value(s) to apulser, apulsew, apulse3, or apulse4 . the host must write to apulser, apulsew, apulse3, and apulse4 before the next ready interrupt for the pulse generation to be beginnin g in the following accumulation interval. figure 8 illustrates pulse generator timing. regardless of the source, the pulse generators should receive new data dur ing each accumulation interval. if this does not occur and if the corresponding bit in the stmask register is set, an apulse_err interrupt will be issued. the pulsew , pulser , pulse3 and pulse4 pins are suitable for driving leds through a curren t limiting resistor. the led should be connected so it is on when the pulse pin is low. downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 19 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand the pin pulse_init determines the logic level applied to the pulse pins on power - up, i.e. with pulse_init low, the pulse pins will be initialized to low (default = 1). the pulse width p w is controlled with the pulsewidth register for the pulser and pulsew output pins per the following formula: 6. 2520 1 2 + ? = pulsewidth p w the pulse3 and pulse4 output pins will always generate pulses with 50% duty cycle. figure 8: pulse generator timing accumulation 1 accumulation 2 accumulation 3 post 1 post 0 post 2 ready apulse write ce operations post processing pulse -1 pulse 0 pulse 1 pulse generator ready ready xfer xfer xfer accumulation interval post-processed data apulse write apulse write accumulation 1 accumulation 2 accumulation 3 post 1 post 0 post 2 ready ce operations post processing pulse 0 pulse 1 pulse 2 pulse generator ready ready xfer xfer xfer accumulation interval internal data (directly by ce) accumulation 1 accumulation 2 accumulation 3 post 1 post 0 post 2 host 0 ready ce operations post processing host processing pulse -2 pulse -1 pulse 0 pulse generator host 1 ready host 2 ready xfer xfer xfer accumulation interval external (host data is transferred to the pulse generator in the first accumulation interv al after the next ready) apulse write apulse write apulse write downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 20 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand internal resources oscillator the oscillator drives a standard 32.768khz watch crystal. crystals of this type are accurate and do not require a high curren t oscillator circuit. the 71m6515h oscillator has been designed specifically to handle watch crystals and is compatible with their high impedance and limited power handling capability. the oscillator power dissipati on is very low to maximize the lifetime o f any battery backup device attached to vbat. using pll techniques, all i nternal clocks, such as the 4.915mhz clock for the adc and the post - processor, are derived from the watch crystal frequency. real - time clock (rtc) the rtc is driven directly by the crystal oscillator. in t he absence of v3p3, it is powered by the battery - backed up supply. the rtc consists of a counter chain and output registers. the counter chain consists of registers for seconds, minutes, hours, day of week, day of month, month, and year. the nominal quadratic temperature coefficient of the crystal is au tomatically compensated in the rtc. the rtc is capable of processing leap years. i/o peripherals the 71m6515h includes several i/o peripheral functions that improve the functionality of the device and reduce the component count for most meter applications. the i/o peripherals include a uart and digital i/o. digital i/o the device includes eight pins of general purpose digital i/o (d0d7). each pin can be configured independently as an input or output with the d_dir bits. inputs are standard cmos with no pull - ups or pull - downs. outputs are standard cmos. the dio pins are controlled by the d_config register. immediately after reset or power - up, d0 through d7 are in tri - state mode. 140 ms after reset, d0 through d7 are con - figured as outputs and driven low. uart host interface the uart is a dedicated 2 - wire serial interface, which can communicate with the host pr ocessor. the operation of each pin is as follo ws: rx: is the pin accepting the serial input data. i t i nputs data to internal registers. the bytes are input lsb first. the voltage applied to this pin must be restricted to 0 to 3.6v. tx: is the pin used for serial output data. it outputs the contents of a block of internal registers. the bytes are output lsb first. baud_rate: the baud rate can be selected with the baud_rate pin (38.4bps when h igh, 19.2bps when low). uartcsz: this pin enables the uart when low. the uart can be reset by taking uartcsz briefly to the high state and then low again. the 71m6515h has several on - chip registers, which can be read and written. all transfers start with a stream of 8 - bit bytes (lsb first) from the host on the rx input, followed by a (possibly null) stream of 8 - bit b ytes (lsb first) to the host on the tx output (s ee figure 9 and figure 10 ) . t he uart is configured as 8n1 (8 bits, no parity, 1 stop bit). if the ready bit in stmask is enabled, the irqz pin can be used to signal data availability to the host. if data read cycles exceeding 1 second are used, care should be taken to prevent data ov erflow. uart write register operation the registers are written by sending a byte, consisting of a starting register address in the seven msbs and 0 in the lsb indicating this is a write operation. it is followed by a one byte length of bytes to w rite. if more bytes arrive than fit in the addressed register, subsequent registers will be written. the by tes are processed in big - endian order (i.e. most significant byte first). see figure 9 (read bits and bytes from left to right). downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 21 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand figure 9 : uart write operation uart read register operation the registers are read by sending a byte, consisting of a start re gister address in the seven msbs and 1 in the lsb indicating this is a read operation. it is followed by a one byte length of bytes to read. if more bytes ar e asked for than the size of the addressed register, subsequent registers will be read. the bytes are in big - endian order (i.e. mos t significant byte first). see figure 10 . figure 10 : uart read operation note: in both register read and write operations, the register address can be 0 through 127 (0x7f). the register address byte is obtained by left - shifting the register address by one bit and setting bit 0 to 1 f or read or setting bit 0 to 0 for write. synchronous serial interface (ssi) a high speed, handshake, serial interface is available to send a contiguous block of c e data to an external data logger or dsp. the block of data, configurable as to location and size, is sent at the beginning of each adc mul tiplex cycle. the ssi interface is enabled by the ssi_en bit and consists of the outputs s sclk, ssdata, and sfr and of the srdy input pin . the interface is compatible with 16 - bit and 32 - bit pro cessors. the operation of each pin is as follows: ssclk: this pin provides the serial clock. the clock can be 5mhz or 10mhz, as specified by the ssi_10m bit. the ssi _ ckgate bit controls whether ssclk runs continuously or is gated off when no ssi activity is occurring. if ssclk is gated, it will begin three cycles before sfr rise s and will persist three cycles after the last data bit is out put. ssdata: this pin provides the serial output data. ssdata changes on the ris ing edge of ssclk and outputs the contents of a block of ce words starting with address ssi_strt and ending with ssi_end . the words are output msb first. ssdata is stable with the falling edge of ssclk. sfr: thi s pin provides the framing pulse. although ce words are always 32 bits, the ssi int erface will frame the entire data block as a single field, as multiple 16 bit fields, or as multiple 32 bit fiel ds. the sfr pulse is one clock cycle wide, changes state on the rising edge of ssclk and precedes the first bit of each field. the field size is set with ssi_fsize : 0 - entire data block, 1 - 8 bit fields, 2 - 16 bit fields, 3 - 32 bit fields. the polarity of the sfr pulse can be inverted with ssi_fpol . t he first sfr pulse in a frame will rise on the third s s clk clock period after mux_sync (fourth ssclk period, if ssclk is 10mhz). mux_sync can be used to synchronize the fields ar riving at the data logger or dsp. srdy: the srdy input s hould always be tied to gnd. w l s b m s b l s b m s b l s b m s b l s b m s b rx tx time register address length most significant data byte least significant data byte r l s b m s b l s b m s b l s b m s b l s b m s b rx tx time most significant data byte least significant data byte register address length downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 22 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand the ssi timing is shown in figure 11 . figure 11 : ssi timing ( ssi_fpol = ssi_rdypol = 0) fault and reset behavior reset mode when resetz is pulled low or when vflt < v3p3/2, all activity (i.e. sampli ng of analog signals, ce, generation of digital outputs) in the chip stops while the analog circuits are active. the exceptions are the oscillator and rtc module, which continue to run. additionally, all i/o register bits are cleared. as long as vflt > v3p3/2, the internal 2.5v regulator will continue to provide power to the digital section. once initiated, the reset mode will persist until the reset timer times out. t his will occur in 4100 cycles of the real time clock after resetz goes high, at which time t he 71m6515h will begin executing its preboot and boot sequences. power fault circuit the power fault comparator compares the voltage at the vflt pin to v3p3/ 2. the comparator output internally enables the battery backup protection for oscillator, rtc and r am during the power fail mode. temperature compensation voltage reference the internal voltage reference of the 71m6515h is calibrated at 25 c during device manufacture. the 71m6515h is given additional temperature - related calibrations which further compe nsate its adc gain and allow it to achieve 10ppm/c over 60c temperature range. temperature sensor the device includes an on - chip temperature sensor for determining the temperature of the bandgap re ference. the primary use of the temperature data is to determine the magnitude of compensation required to off set thermal drift in the system. the temperature sensor is read once per accumulation interval. temperature measurement can be implemented with the following steps: 1) at a known temperature t n , read the temp_raw register and write the value into temp_nom register. 2) read the delta_t register at the known temperature. the obtained value should be < 0.1c. 3) the temperature t (in c) at any environment can be obtained by reading the delta_t register and applyin g the following formula: 10 _ t delta t t n + = sclk (output) ssdata (output) sfr (output) 31 30 16 15 1 0 31 ssi_beg 30 16 15 1 0 31 ssi_beg +1 1 0 ssi_end if 16bit fields if 32bit fields if ssi_ckgate =1 if ssi_ckgate =1 mux_state downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 23 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand temperature compensation for energy measurements temp_nom is one of the calibration parameters that must be loaded by the host in or der to enable temperature measurement and thereby temperature compensation. ppmc and ppmc2 , the linear and quadratic compensation coefficients, compensate for tem perature drift in t he 71m6515h reference that affects the meter performance. ppmc and ppmc2 describe how the 71m6515h calculations are to respond to temperature. this means they should be the negative of the meter behavior before compensation. ppmc and ppmc2 are scaled from ppm/ c and ppm/ c 2 values. see the register description for details. temperature compensation can be selected to operate in one of two modes shown in the table below: temperature compensation mode default_ppm bit in config register ppmc , ppmc2 calculation internal (ce) 1 by post - processor, based on stored vref characteristics external (host) 0 by host when the part is first powered up, temp_nom , ppmc , and ppmc2 are zero. when the host writes its calibration value into temp_nom (after setting the default_ppm bit on the config register to 1), ppmc and ppmc2 will automatically be initialized to the values that best compensate for the temperature drift of t he internal reference. these parameters will be individually customized for 71m6515h parts. if, for some reason, the host writes to temp_nom again, ppmc and ppmc2 will not be changed since they will no longer be zero. if temp_nom is not loaded by the host, ppmc and ppmc2 are ignored, and their values are permanently held at zero. if temp_nom is zero, no temperature compensation occurs, even if ppmc and ppmc2 are loaded. if the host wishes to provide its own compensation, it should read ppmc and ppmc2 and modify them by merging the additional compensation into to them. in that case, the defaul t_ppm bit in the config register must be zero. temperature compensation for the crystal and rtc the crystal oscillator contributes negligible error to energy ca lculations. however, sometimes specifications for the real time clock (rtc) require better accur acy than that provided by the untrimmed watch crystal. the 71m6515h therefore allows calibration of the rtc clock. calibration requires that frequency tolerance and frequency stability either be obtained from t he manufacturer or be independently measured (the rtc clock is available on the tmux pin). c alibration does not change the frequency of the rtc clock, but rather increments or decrements the clock by one second when sufficient error has accumulated. positive correction makes the clock run faster. the formula for the rtc correction factor is as follows: correction [ppm] = t calc y t calc y calc y ? + ? + 2 1000 2 _ 100 1 _ 10 0 _ where y_cal c0 = 10 * crystal frequency deviation from ideal (measured) y_calc 1 = 100 * crystal skew (nominally zero) y_calc2 = 1000 * crystal frequency stability (specified) ? t = t - calibration temperature in c calibration calibration factors for ct and resistive shunt once installed in a meter, the teridian 71m6515h ic has to be calibrated for the tolerances of current sensors, voltage dividers and signal conditioning component s . the room t emperature re a ding of its temperature sensor must also be entered. these calibration factors must be stored by the host and, upon power up, loaded into the ter idian 71m6515h. typical calibration con stants are listed in table 4. downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 24 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand name description cal_ia gain factors for current and voltage of each phase. cal_va cal_ib cal_vb cal_ic cal_vc temp_nom the value of temp_raw at nominal temperature. phadj_a phase compensation for each current. if phase compensation is 0 or if current sensors have predictable phase, phadj may not need to be measured on every meter. phadj_b phadj_c table 4 : typical calibration parameters (ct) gain adjustment ( cal _xn parameters) is used to compensate for tolerances of components used for signal c onditioning, especially the resistive components. a 1% increase in cal_xn will cause a 1% increase in the channel gain. the phase compensation circuit in the teridian 71m6515h is optimized for operation w ith current transformers (cts). these devices have a low frequency pole and therefore have a slight am ount of phase lead at 50 or 60hz more at 50hz than at 60hz. the phase lead diminishes at higher harmonics. when phad j_n is calibrated as shown below at either 50hz or 60hz, the ct will be correctly compensated from below 25hz to beyond 1100hz. this phase compensator is markedly superior to the more common technique of programming a time delay to compensate for ct phase. the time delay technique results in phase compensation that is correct a t only one frequency, and actually amplifies the phase error at harmonics of the frequency. calibration factors for rogowski coi l sensors if image is set to 01, i.e. the 71m6515h can be operated with rogowski coil sensors. in this c ase, one more calibration factor per phase is needed. the phadj parameters have non - zero defaults and do not obey the same formula used for ct calibrati on. the feedthrough parameter has to be determined by a separate crosstalk measurement. table 5 shows the parameters involved in the calibration procedure for the rogo wski sensor. name description cal_ia gain constants for current and voltage of each phase. cal_va cal_ib cal_vb cal_ic cal_vc temp_nom the value of temp_raw at nominal temperature. phadj_a phase compensation for each current. if phase compensation is 0 or if current sensors have predictable phase, phadj may not need to be measured on every meter. phadj_b phadj_c vfeed_a feedthrough compensation for each current. vfeed_b vfeed_c table 5: typical calibration parameters (rogowski) downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 25 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand general notes on calibration the calibration procedures described below should be followed after interfacing the voltage and current sensors to the 71m6515h chip. when properly interfaced, the v3p3 power supply is connected to the meter neutral and is the dc reference for each input. each voltage and current waveform, as seen by the 6515h, is scaled to be less than 250mv (peak). each meter phase must be calibrated individually. the procedures below show how to ca librate a meter phase with either three or five measurements. note that there is no need to calibrate for varh if the wh measurement is calibrated correctly. note that positive load angles correspond to lagging current (see figure 12 ). for a typical calibration, a meter calibration system is used to apply a calibrated load, e.g. 240v at 30a, while in ter facing the voltage and current sensors to the 71m6515h. this load should result in an ob - servable pulse rate at the pulsew output depending on the selected energy per pulse. for example, 7.2kw will result in an energy rate corresponding to 7200wh/3600s = 2wh/s, i.e., when 7.2kw are applied per phase (resulting in a total power of 21.6kw, equivalent to 6wh/s) and a kh of 3.2 (wh/pulse) has been configured, a pulse rate of 6wh/3.2 whs = 1.875hz will be established. figure 12 : definition of load angles it is entirely possibl e to calibrate pi ece - wise, i.e. in segments, to compensate for non - linear sensors. for example, one set of calibration factors can be applied by the host when the current is below 0.5a, while another s et is applied when the current is at or above 0.5a. calibration procedure for ct and resistive shunt a typical meter has phase and gain errors as shown by s , a xi , and a xv in figure 13 . following the typical meter convention of current phase being in the lag direction, the small amount of phase lead in a typical current sensor is represented as - s . the errors shown in figure 13 rep resent the sum of all gain and phase errors. they include errors in voltage attenuators, current sensors, signal conditioning circuits, and in adc gains. in other words, no errors are made in the input or meter boxe s. i v l input ? s a xi a xv errors ) cos( l iv ideal = ) cos( s l xv xi a a iv actual ? = 1 ? = ? ideal actual ideal ideal actual error w i rms mete r v rms xi a i actual i ideal = = , xv a v actual v ideal = = , l is phase lag s is phase lead figure 13 : watt meter with gain and phase errors. during the calibration phase, we measure errors and then introdu ce correction factors to nullify their effect. with three unknowns to determine, we must make at least three measurements. i f we make more measurements, we can average the results. voltage current +60 using energy generating energy current lags voltage (inductive ) current leads voltage (capacitive ) -60 voltage positive direction downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 26 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand calibration with three measurements the simplest calibration method is to make three measurements. typically, a voltage measurement and two watt - hour (wh) measurements are made. if the voltage measurement has the error e v and the two wh measurements have errors e 0 and e 60 , where e 0 is measured with l = 0 and e 60 is measured with l = 60. these values should be simple ratios not percentage values. they should be zero when the me ter is accurate and negative when the meter runs slow. the fundamental frequency is f 0 . t is equal to 1/f s , where f s is the sample frequency (2520.62hz). set all calibration factors to nominal: cal_ia = 16384, cal_va = 16384, phadj_a = 0. from the voltage measurement, w e determine that 1. ? 1 + = v xv e a we use the other two measurements to determine s and a xi . 2. 1 ) cos( 1 )0 cos( ) 0 cos( 0 ? = ? ? = s xi xv s xi xv a a iv a a iv e 2a. ) cos( 1 0 s xi xv e a a + = 3. 1 )60 cos( ) 60 cos( 1 )60 cos( ) 60 cos( 60 ? ? = ? ? = s xi xv s xi xv a a iv a a iv e 3a. [ ] 1 )60 cos( ) sin( )60 sin( ) cos( )60 cos( 60 ? + = s s xi xv a a e 1 ) sin( ) 60 tan( ) cos( ? + = s xi xv s xi xv a a a a combining 2a and 3a: 4. ) tan( ) 60 tan( )1 ( 0 0 60 s e e e + + = 5. )60 tan( )1 ( ) tan( 0 0 60 + ? = e e e s 6. ? ? ?? ? ? ?? ? + ? = ? )60 tan( )1 ( tan 0 0 60 1 e e e s and from 2a: 7. ? ) cos( 1 0 s xv xi a e a + = now that we know the a xv , a xi , and s errors, we calculate the new calibration voltage gain coefficient f rom the previous ones: xv new a v cal v cal _ _ = downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 27 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand we calculate phadj from s , the desired phase lag: [ ] [ ] ?? ? ?? ? ? ? ? ? ? ? ? + = ? ? ? ? ) 2 cos( ) 2 1( 1) tan( ) 2 sin( ) 2 1( ) 2 cos( ) 2 1(2 ) 2 1( 1) tan( 2 0 9 0 9 0 9 29 20 tf tf tf phadj s s finally, we calculate the new calibration current gain coeffic ient, including compensation for a slight gain increase in the phase calibration circuit. 29 0 9 0 9 20 20 ) 2 1( ) 2 cos( ) 2 1(2 1 )) 2 cos( ) 2 1(2 2 2( 2 1 1 _ _ ? ? ? ? ? ? + ? ? ? ? + + = tf tf phadj phadj a i cal i cal xi new calibration with five measurements the five measurement method provides more orthogonality between the gain and phase err or derivations. this method involves measuring e v , e 0 , e 180 , e 60 , and e 300 . again, set all calibration factors to nominal, i.e. cal_ia = 16384, cal_va = 16384, phadj_a = 0.. first, calculate a xv from e v : 1. ? 1 + = v xv e a calculate a xi from e 0 and e 180 : 2. 1 ) cos( 1 )0 cos( ) 0 cos( 0 ? = ? ? = s xi xv s xi xv a a iv a a iv e 3. 1 ) cos( 1 ) 180 cos( ) 180 cos( 180 ? = ? ? = s xi xv s xi xv a a iv a a iv e 4. 2 ) cos( 2 180 0 ? = + s xi xv a a e e 5. ) cos( 2 2 180 0 s xi xv e e a a + + = 6. ? ) cos( 1 2) ( 180 0 s xv xi a e e a + + = use above results along with e 60 and e 300 to calculate s . 7. 1 )60 cos( ) 60 cos( 60 ? ? = iv a a iv e s xi xv 1 ) sin( ) 60 tan( ) cos( ? + = s xi xv s xi xv a a a a 8. 1 )60 cos( ) 60 cos( 300 ? ? ? ? = iv a a iv e s xi xv 1 ) sin( ) 60 tan( ) cos( ? ? = s xi xv s xi xv a a a a downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 28 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand subtract 8 from 7 : 9. ) sin( ) 60 tan( 2 300 60 s xi xv a a e e = ? use equation 5: 10. ) sin( )60 tan( ) cos( 2 180 0 300 60 s s e e e e + + = ? 11. ) tan( ) 60 tan( )2 ( 180 0 300 60 s e e e e + + = ? 12. ? ? ?? ? ? ?? ? + + ? = ? )2 )( 60 tan( ) ( tan 180 0 300 60 1 e e e e s now that we know the a xv , a xi , and s errors, we calculate the new calibration voltage gain coefficient f rom the previous ones: xv new a v cal v cal _ _ = we calculate phadj from s , the desired phase lag: [ ] [ ] ?? ? ?? ? ? ? ? ? ? ? ? + = ? ? ? ? ) 2 cos( ) 2 1( 1) tan( ) 2 sin( ) 2 1( ) 2 cos( ) 2 1(2 ) 2 1( 1) tan( 2 0 9 0 9 0 9 29 20 tf tf tf phadj s s finally, we calculate the new calibration current gain coeffic ient, including compensation for a slight gain increase in the phase calibration circuit. 29 0 9 0 9 20 20 ) 2 1( ) 2 cos( ) 2 1(2 1 )) 2 cos( ) 2 1(2 2 2( 2 1 1 _ _ ? ? ? ? ? ? + ? ? ? ? + + = tf tf phadj phadj a i cal i cal xi new alternative calibration procedures it is possible to implement a fast calibration based on only one meas urement with a zero - degree load angle. details can be found in the teridian application note an_651x_022 (calibration procedur es). calibration procedure for rogowski sensor rogowski coils generate an output signal that is the derivative of the input current. the 6515h rogowski module im plemented in the rogowski ce image digitally compensates for this effect and has the usual gain and phase calibration adjustments. additionally, calibration adjustments are provided to eliminate v oltage coupling from the sensor input. current sensors built from rogowski coils have relatively high output impedances that are susceptible to capacitive cou pling from the large voltages present in the meter. the most dominant coupling is usuall y capacitance between the primary of the coil and the coils output. this coupling adds a component proportional to the derivative of voltage to the sensor output. th is effect is compensated by the voltage coupling calibration coeffici ents. as with the ct procedure, the calibration procedure for rogowski sensors uses the meters display to calibrate the voltage path and the pulse outputs to perform the remaining energy calibrations. the calibration procedure must be performed to each phase se parately, making sure that the pulse generator is driven by the accumulated r eal energy for just that phase. in other words, the pulse generator input should be set to wha, whb, or whc, depe nding on the phase being calibrated. the ic has to be configured for rogowski mode ( image =01). in preparation of the calibration, all calibration parameters are set to the ir default values. vmax and imax are set to reflect the system design parameters. wrate and pulse_slow , pulse_fast are adjusted to obtain the desired k h. downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 29 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand for details on calibrating a meter for rogowski coil sensors, see the teridian application note an_6515_036. meter design - scaling of measured values an actual meter will always use sensors that scale the voltages and currents managed by the meter to small voltages that can be processed by the 71m6515h. this scaling is reflected in the system parameters vmax and imax . scaling is physically implemented with resistor dividers for the voltage signals and c urrent transformers, shunt resistors or rogowski co ils for the current signals. imax is the rms meter current that results in 250mv peak signal (or 177mv rms) at the adc input (ia, ib, ic pins). vmax is the rms meter voltage that results in 250mv peak signal at the adc input (va, vb, vc pins). in_8 is eit her 1 or 8, depending on in_8x , the adc gain configuration bit for element n (see ia_8, ib_8, ic_8 ) in the config register. only the host is aware of the system parameters vmax and imax , while the ce and the post - processor know signal amplitudes only as v alues relative to their maximum peak levels (250mv). this make s the host itself responsible for trans lating the measured values from the 71m6515h registers into real - world values by applying the parameters vmax , imax and in_8 . equally, the host is responsible for non - volatile storage of accumulated energy values, calibration facto rs, default settings et cetera. measured values and values determining the function of the 71m6515h, as controlled by the r egisters described in the following section, are often s tated as fractions or multiples of the system parameters vmax , imax and in_8 . host interface - register description communication between the host and the 71m6515h is established by writing to and reading fro m the registers described in this section. the registers are accessible via the uart (see uar t write and read operation). the tables below contain the registers that can be accessed by the host to obtain data f rom the 71m6515h or to control and configure the ic. bits with a w (write) direction are writ ten by the host. bits with r (read) direction can only be read by the host. write operati ons attempted to read - only registers will result in the cmd_ignored bit set in the status register. unless stated otherwise, all registers are four bytes (32 bits), 2 s complement, and have a range of (2 31 - 1) to - (2 31 - 1). register groups each register belongs to one of the following functional groups: ? pulse generation ? calibration ? control of basic functions ? temperature ? temperature compensation ? output signals ? accumulated energy and v/i values ? alarms and thresholds ? time (rtc) ? test ? digital i/o control (pins d0d7) downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 30 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand registers in alphabetical order name address (hex) r/w default group comment apulsew apulser apulse3 apulse4 0x30 0x31 0x32 0x33 r/w r/w r/w r/w 0 0 0 0 pulse generation control cal_ia cal_va 0x24 0x25 r/w r/w 2 14 2 14 calibration cal_ib cal_vb 0x26 0x27 r/w r/w 2 14 2 14 calibration cal_ic cal_vc 0x28 0x29 r/w r/w 2 14 2 14 calibration ce_data 0x63 r/w n/a control of basic functions ce_data_addr 0x61 r/w n/a control of basic functions ce_data_inc 0x65 r/w n/a control of basic functions ce_prog 0x62 r/w n/a control of basic functions ce_prog_addr 0x60 r/w n/a control of basic functions ce_prog_inc 0x64 r/w n/a control of basic functions config 0x16 r/w 0 control of basic functions creep_thrsld 0x1d r/w 6000 alarms and thresholds deg_scale 0x1c r/w 22721 temperature d_config 0x1a r/w 15 i/o control freq_delta_t 0x11 r n/a outputs, temperature gain_adj 0x4e r 16384 temperature compensation iasqfract ibsqfract icsqfract 0x4a 0x4b 0x4c r r r n/a n/a n/a outputs iasqsum ibsqsum icsqsum 0x39 0x3a 0x3b r r r n/a n/a n/a outputs insqfract 0x4d r n/a outputs insqsum 0x3c r n/a outputs iphase_abc 0x0f r n/a outputs uses the post - processor irms_a irms_b irms_c 0x0c 0x0d 0x0e r r r n/a n/a n/a outputs uses the post - processor kvar 0x2f r 6444 calibration do not change main_edge_ count 0x35 r n/a outputs op_time 0x1e r/w 0 time downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 31 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand name address (hex) r/w default group comment phadj_a phadj_b phadj_c 0x2a 0x2b 0x2c r/w r/w r/w ct: 0 ct: 0 ct: 0 calibration defaults are C 3973 for rogowski operation ppmc1_2 0x1b r/w 0 temperature compensation pulse3_4_ cnts 0x42 r n/a outputs pulse_srcs 0x43 r/w pulse generation control pulsew_r_ cnts 0x41 r n/a outputs pulse_width 0x34 r/w 50 pulse generation control quant_w quant_var quant_i 0x36 0x37 0x38 r/w r/w r/w 0 0 0 calibration rtc_date 0x20 r/w n/a time rtc_time_day 0x1f r/w n/a time rtm 0x21 r/w 0 test sag 0x2e r/w 80, 26000 alarms and thresholds ssi 0x22 r/w 0 test status 0x14 r n/a control of basic functions stmask 0x15 r/w 0 control of basic functions temp_nom 0x13 r/w 0 outputs temp_raw 0x12 r n/a outputs vasqsum vbsqsum vcsqsum 0x3d 0x3e 0x3f r r r n/a n/a n/a outputs vah_a vah_b vah_c 0x06 0x07 0x08 r r r n/a n/a n/a outputs uses the post - processor varh_a varh_b varh_c 0x03 0x04 0x05 r r r n/a n/a n/a outputs vfeed_a vfeed_b vfeed_c 0x44 0x45 0x46 r/w r/w r/w 0 0 0 calibration vi_pthresh 0x17 w 21000 alarms and thresholds vi_thresh 0x40 w 21000 alarms and thresholds downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 32 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand name address (hex) r/w default group comment vphase_abc 0x10 r n/a outputs vrms_a vrms_b vrms_c 0x09 0x0a 0x0b r r r n/a n/a n/a outputs uses the post - processor wh_a wh_b wh_c 0x00 0x01 0x02 r r r n/a n/a n/a outputs wrate 0x2d r/w 683 pulse generation control y_deg0 0x18 r/w 0 temperature compensation holds y_calc0 y_deg1_2 0x19 r/w 0 temperature compensation holds y_calc1 and y_calc2 downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 33 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand individual register descriptions registers for pulse generation control apulsew ( 0x30 ) , apulser ( 0x31 ) , apulse3 ( 0x32 ) , apulse4 ( 0x33 ) , figure 14 shows the r egisters that control the pulsew, pulser, pulse3 and pulse4 output pins if the corresponding pulse_srcs register contains the decimal value 36 . t his figure uses the pulser_src 8- bit portion of the pulse_srcs register as an example: t he internal pulse generation (ce) and the post - processor pulse generation are deselected, and the apulser register acts as the pulse generation source. in this setting (external pul se generation), th e host is responsible for updating the data in the apulser register. pulser_src 35: wsum 0: wsum 1: wasum 2: wbsum 3: wcsum 4: varsum 34: var2sum_e 36: apulser host ce pulser output post processor 36 34: var2sum_e figure 14 : pulse generation via apulser selected in the pulser_src register pulse_srcs ( 0x43 ) this register contains the pulse source selectors for the pulses generate d by the pulsew, pulser, pulse3 and pulse4 output pins. pulse sources can be selected individually for internal (ce ), external (post - processor) or external (supplied by the host). the internal selection is valid for the pulser and pulsew generators only. the alloca tion of the bytes in pulse_srcs is as follows: 31 24 23 16 15 8 7 0 pulsew_src pulser_src pulse3_src pulse4_src source selector register for the pulsew generator source selector register for the pulser generator source selector register for the pulse3 generator source selector register for the pulse4 generator table 6 shows the codes used to select pulse sources. pulse_width ( 0x34 ) this register contains the numeric al value controlling the pulse width for the pulsew and pulser output pins. the default value is 50, which amounts to 40.07ms. the pulse width p w follows the formula: p w <= (2 * pulse_width + 1)/2520.6 downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 34 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand at high pulse rates, duty cycle is 50%. at rates less than 1/(2*pwmax), the negative going pulse width is pwmax. the a llowed range is 0 to 2 31 - 1. the pulse width for the pulse3 and pulse4 outputs is always at a 50% duty cycle. the initial voltage level of the pulse pins is defined with the p ulse_init pin. value in pulse source re gister (hex) (dec) name description 0x00 0 wsum the signed sum: w0sum + w1sum + w2sum 0x01 1 wasum the sum of wh samples from individual wattmeter elements. lsb = 9.4045*10 - 13 vmax imax / in_8 wh 0x02 2 wbsum 0x03 3 wcsum 0x04 4 varsum the signed sum: var0sum + var1sum + var2sum 0x05 5 varasum the sum of varh samples from individual wattmeter elements. lsb = 9.4045*10 - 13 vmax imax / in_8 varh 0x06 6 varbsum 0x07 7 varcsum 0x08 8 vasum the sum of vah samples from individual samples. 0x09 9 vaasum the sum of vah samples from individual wattmeter elements. lsb = 9.4045*10 - 13 vmax imax / in_8 vah 0x0a 10 vabsum 0x0b 11 vacsum 0x0c 12 insqsum the sum of the square of the calculated neutral current. + + .) ( 2 2 1 0 i i i lsb = 9.4045*10 - 13 imax 2 / in_8 2 a 2 h 0x0d 13 iasqsum the sum of squared current samples from each element. lsb = 9.4045*10 - 13 imax 2 / in_8 2 a 2 h 0x0e 14 ibsqsum 0x0f 15 icsqsum table 6: pulse sources defined by the pulse_srcs register (1/2) downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 35 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand value in pulse source re gister (hex) (dec) name description 0x10 16 vasqsum the sum of squared voltage samples from each element. lsb = 9.4045*10 - 13 vmax 2 v 2 h 0x11 17 vbsqsum 0x12 18 vcsqsum 0x13 19 wsum_i imported energy: w0sum_i + w1sum_i + w2sum_i 0x14 20 wasum_i imported energy from individual wattmeter elements. never negative. lsb = 9.4045*10 - 13 vmax imax / in_8 wh 0x15 21 wbsum_i 0x16 22 wcsum_i 0x17 23 varsum_i imported varh: var0sum_i + var1sum_i + var2sum_i 0x18 24 varasum_i exported reactive energy from individual wattmeter elements. never negative. lsb = 9.4045*10 - 13 vmax imax / in_8 varh 0x19 25 varbsum_i 0x1a 26 varcsum_i 0x1b 27 wsum_e exported energy: w0sum_e + w1sum_e + w2sum_e 0x1c 28 wasum_e exported energy from individual wattmeter elements. never negative. lsb = 9.4045*10 - 13 vmax imax / in_8 wh 0x1d 29 wbsum_e 0x1e 30 wcsum_e 0x1f 31 varsum_e exported varh: var0sum_e + var1sum_e + var2sum_e 0x20 32 varasum_e exported reactive energy from individual wattmeter elements. never negative. lsb = 9.4045*10 - 13 vmax imax / in_8 varh 0x21 33 varbsum_e 0x22 34 varcsum_e 0x23 35 internal (ce) connects the pulse generator to the wsum or varsum values internally calculated by the ce. not selectable for pulse3 and pulse4 pulse generators. 0x24 36 external (host) indicates that the host will provide values in the apulser, ap ulsew, apulse3, and apulse4 registers and that the pulse generator should be up - dated on the next ready interrupt.. table 6: pulse sources defined by the pulse_srcs register (2/2) wrate ( 0x2d ) this register controls the rate of the pulse generation for the p ulsew, pulser, puse3 and pulse4 output pins. the inverse pulse rate, expressed as wh per pulse is: pulse wh x wrate cycles sum in imax vmax kh / 5757 .1 _ 8_ ? ? ? = (x = value formed by pulse_slow and pu lse_fast bits in the config register) downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 36 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand registers used for calibration cal_ia ( 0x24 ) , cal_va ( 0x25 ) , cal_ib ( 0x26 ) , cal_vb ( 0x27 ) , cal_ic ( 0x28 ) , cal_vc ( 0x29 ) : these registers adjust the gain for the current and voltage measureme nts of each phase for the purpose of calibration. the calibration factors have to be stored by the host and written to the registers of the 71m6515h after power - up. the allowed range is (2 15 C 1) to C (2 15 C 1). the default value of 16384 equals unity gain. if a voltage measurement of phase c is higher than expected, cal_vc has to be adjusted to: cal_vc = 16384 / (1 + error) error must be expressed as a fraction, not a percentage value. if the percent error is +3.5%, the relative error is 0.035, an d the calibration factor becomes: cal_vc = 16384 / (1 + 0.035) = 15829.952, which is rounded up to15830. kvar ( 0x2f ) this register holds the relative gain of the var calculation wi th respect to the watt calculation. the value should always be 6444. phadj_a ( 0x2a ) , phadj_b ( 0x2b ) , phad_c ( 0x2c ) these registers hold the phase correction factors for channels a, b, and c. the values are used by the ce to compensate for phase errors induced by current transformers. the allowed range is ( 2 15 - 1) to - (2 15 - 1). see the calibration procedure section for applicable values. if the ce is operated in rogowski coil mode, no phase compensation should be required. the default value is not zero and should need to be changed only slightly, if at all. see the calibration section for details. quant_w ( 0x36 ) , quant_var ( 0x37 ) , quant_i ( 0x38 ) these registers hold dc values that are added to each calculated product in order to compensate for internal quantization (a very small amount) and external noise. these values are normally set to zero . the lsb values for these variable are listed in table 7. variable lsb value unit quant_w (vmax imax/ in_8)* 1.04173*10 -9 w quant_var (vmax imax / in_8)* 1.04173*10 -9 var quant_i (imax 2 / in_8 2 )* 5.08656*10 - 13 a (rms) table 7: lsb values for quant variables nonlinearity is most noticeable at low currents, and can result fro m input noise and truncation. nonlinearities can be eliminated using the quant_w register. the error can be seen as the presence of a virtual constant noise current that be comes dominant at small load currents. the value to be used for quant_w can be determined by the following formula: lsb imax vmax in i v error w quant ? ? ?? ?= 8_ 100 _ where error = observed error at a given voltage (v) and current (i) , vmax = voltage scaling factor, as described in section scalin g of measured values imax = current scaling factor, as described in section scaling of measured values lsb = quant lsb value = 1.04173*10 -9 w downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 37 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand exampl e: for a wh measurement, an error of +1% was observed at 1a. if vmax is 600v and imax = 208a, and if the measurement was taken at 240v, we determine quant_w as follows: 18460 10 04173 .1 208 600 1 240 100 1 _ 9 ?= ? ? ? ? ?= ? w quant the negative value obtained by the calculation will compensate for the positive error. i t does not matter which current value is chosen as long as the corresponding error value is significant (5% er ror at 0.2a used in the above equation will produce the same result for quant_w ). input noise and truncation can cause similar errors in the var calculation that can be eliminated using the quant_var register. vfeed_a ( 0x44 ) , vfeed_b ( 0x45 ) , vfeed_c ( 0x46 ) these registers hold the compensation factors for feedthrough used for calibrating rogowski coils. the a llowed range is (2 15 - 1) to - (2 15 - 1). see the section on rogowski coil calibration for details. registers controlling basic function and settings of the 71m6515h config ( 0x16 ) the four bytes written to this register determine the basic operation of the 71m6515h . the function of the 28 bits used for this register are explained below: bit 0: this bi t ( vah_select ) determines the method used by the post - processor for determining the apparent energy measured in vah. if the bit is 0 ( default ), the calculation is based on v rms , i rms and the time (t) per the formula: vah = v rms * i rms * t the accuracy of the result can be improved for low currents by setting bit 0 to 1. the calculation is then based on the wh and varh values per the formula: 2 2 varh wh vah + = using the calculation method above, high accuracy can be achieved for low currents. bit 3: this bit ( rtm_en ) enables the real - time monitor function when set to 1.when used, the rtm signal is available at the tmux pin. bit 4: this bit ( ce_en ) enables the ce when set to 1. the ce has to be enabled for most me tering functions. bit s 7 - 5: these three bits ( equ ) define the equation (see table below) to be implemented by the ce. equ watt & var formula application 0 va ia 1 element, 2w 1? 1* va(ia - ib)/2 1 element, 3w 1? 2 va ia + vb ib 2 element, 3w 3 ?delta 3* va (ia - ib)/2 + vc ic 2 element, 4w 3? delta 4* va(ia - ib)/2 + vb(ic - ib)/2) 2 element, 4w 3? wye 5 va ia + vb ib + vc ic 3 element, 4w 3? wye downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 38 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand bits 13 - 8: these six bits ( sum_cycles ) define the length of the accumulation interval per the formula: 6. 2520 42 _ ? = cycles sum allowed values are 24 (400ms) through 60 (1000ms), unless the post - processor is disabled. bit 8 is the lsb. it is important to note that the length of the accumulation interval, as determined by sum_cycles , is not an exact multiple of 1000ms. for example, if sum_cycles = 60, the resulting accumulation interval is: ms hz hz 75 . 999 62 . 2520 2520 13 32768 42 60 = = ? = this means that accurate time measurements should be based on the rtc , not the accumulation interval. bit 14: this bit ( cko ut_disb ) disables the ckout pin when set. the ckout pin can be used for diagnostics. for emc compliance and power saving reasons, ckout_disb should always be set. bit 15: this bit ( adc_dis ) disables the adc when set, e.g. to save power. of course, no meter ing or measuring can be performed with the adc disabled. bits 18 - 16: these three bits ( tmux ) select the source for the tmux diagnostic output pin. for emc compliance and power saving reasons, tmux should be zero (default) if unused. bit 18 tmux2 bit 17 tmux1 bit 16 tmux0 tmux signal selected for the tmux pin 0 0 0 0 gnd 0 0 1 1 mux_sync 0 1 0 2 rtm 0 1 1 3 rtc output 1 0 0 4 ce_busy 1 0 1 5 xfer_busy 1 1 0 6 vx_ok (comparator output) 1 1 1 7 v3p3/2 =1.5v internal analog voltage downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 39 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand bits 20 - 19: these two bits ( f_select ) select the phase that is to be used for frequency measurement. the frequency will be shown in bits 31 - 16 of the freq_delta_t register (and as bit 4 of the status word C in this form as a digitized zero crossing signal). bit 20 f_select1 bit 19 f_select0 f_select phase selected 0 0 0 phase a 0 1 1 phase b 1 0 2 phase c 1 1 3 not allowed since the signal at the input selected with f_select is used to synchronize filters and other processing stages in the ce, accuracy for most measurements will be reduced if no voltage is present at the selected phase i nput. accuracy can be established by selecting the phase that carries a stable signal (a, b, or c). bit 21: this bit ( ce_only ) disables the post - processor when set to 1. when the post - processor is disabled, the time - intensive computations of iphase, irms, vah and vrms are not per formed, and therefore smaller accumulation times ( sum_cycles < 24 ) are permitted. in this case, the host is responsible for calculat ing iphase, irms, vah and vrms. bits 23 - 22: these two bits ( image ) select the code to be used by the ce. the ce can be operated in standard mode when using cts and/or shunt resistor sensors or in rogowski mode when using rogowski c oil sensors. in order to switch the operation mode, the ce has to be disabled first by cle aring the ce_en bit. bit 23 image 1 bit 22 image 0 image ce code selected 0 0 0 standard (ct/shunt) 0 1 1 rogowski coil 1 0 2 standard (ct/shunt) 1 1 3 standard (ct/shunt) bit 24: this bit ( reset ), when reset, forces all internal states of the 71m6515h to their power - up default. bits 26 - 25: these two bits ( pulse_slow, pulse_fast ) modify the speed of the pulse generator. pulse_slow and pulse_fast determine the factor x in the equation used for kh as shown in the ta ble below. pulse_slow pulse_fast x 0 0 1.5*2 2 = 6 0 1 1.5*2 6 = 96 1 0 1.5*2 - 4 = 0.09375 1 (default) 1 (default) 1.5 pulse_slow and pulse_fast will affect the operation of all four pulse outputs. see the pulse generation s ection for details. bits 29 - 27: these three bits ( ia_8x, ib_8x, ic_8x ) apply an additional gain of 8 to the ia, ib, and ic channels when set to 1. this is a useful tool when very small signals are encountered, as is the case when using current shunt resistors with very low resistance while operating at low currents. care must be taken to avoid clipping. if the input to the meter exceeds imax/8, clipping will occur. these bits should normally be zer o, unless additional gain following the adc stage is needed. bit 30: this bit ( default_ppm ) defines the source of temperature compensation. when default_ppm is 1, the 71m6515h will automatically apply compensation coefficients derived fr om the stored vref temperature characteristics to the ppmc and ppmc2 registers. when default_ppm is zero, the host is allowed to write its own values to the ppmc and ppmc2 registers . downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 40 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand status ( 0x14 ) the four bytes in this register reflect the status of the vario us measurement functions of the 71m6515h. this register is read only. when a bit in the stmas k register is set, an interrupt (irqz) is generated as soon as the corresponding bit in the status register is set. bit 0: this bit ( bootup ) signals a request from the 71m6515h to the host to be initialize d. bit 1: this bit ( saga ), when set, indicates th at the voltage applied to phase a has sagged below sagthr. see the for sag register for a detailed description. bit 2: this bit ( sagb), when set, indicates that the voltage applied to phase b has sagged below sagthr. bit 3: this bit ( sagc), when set, indic ates that the voltage applied to phase c has sagged below sagthr. bit 4: this bit ( f0) follows the polarity of the input voltage selected with the f_select bits in the config register. it represents a smoothed, filtered and squared copy of the fundamental waveform . bit 5: this bit ( maxv), when set, indicates that a voltage greater than the voltage limit defined in the vi_pthreshold register had been detected in the previous accumulation interval. bit 6: this bit ( maxi), when set, indicates that a current greater than the current limit defined in t he vi_pthreshold register had been detected in the previous accumulation interval. bit 7: this bit ( 1seci , toggles every second. it is controlled by the rtc. bit 8: this bit ( vx edge), when set, indicates a change in state of vx comparator. this bit is updated every accu mulation interval. bit 9: this bit ( dedge), when set, indicates a change in state of any selected dio pin. this bit is updated every accumulation interval. pins ha ve to be configured to generate the dedge flag using the dio_int_ctrl bits in the d_config register. bit 10: this bit ( xovf), when set, indicates that the host failed to read at least one of the wh values. bet ween interrupts (indicated by the ready bit in the status word), the 71m6515h expects the host to read at least one of the watthr_a , watthr_b , or watthr_c values. bit 11: this bit ( ready), when set, indicates that the 71m6515h has fresh output values ready for t he host. setting this bit in stmask will enable the hardware interrupt output pin irqz. bit 14 - 12: these bits (bit 12 for phase a, bit 13 for phase b, bit 14 for phase c ), when set, indicate that the energy received from element a, b, or c is below the creep threshold defined in the creep_thrshld register or that the current in elements a, b, or c is below the threshold defined in bits 15 - 0 of the start_threshld register. the creep condition flagged by bits 14 - 12 of the status register indicates that wh, varh, and irms measurements of element a, b, or c have been zeroed out. consequently, accumulation did not occur. bit 15: this bit ( cmd_ignored), when set, indicates that the 71m6515h ignored the last command received from the host. the reason can be any type of command incompatibil ity, e.g. attempts to write to a read - only register. bit 16: this bit ( pulsew_err), when set, indicates that the pulse generator pulsew is configured for exte rnal (host) input, but did not receive an update during the previous accumulati on interval. bit 1 7: this bit ( pulser_err), when set, indicates that the pulse generator pulser is configured f or external (host) input, but did not receive an update during the previous accumulation interva l. bit 18: this bit ( pulse3_err), when set, indicates that the pulse generator pulse3 is configured for external (host) input, but did not receive an update during the previous accumulation interva l. bit 19: this bit ( pulse4_err), when set, indicates that the pulse generator pulse4 is configured for external (host) input, but did not receive an update during the previous accumulation interva l. downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 41 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand stmask ( 0x15 ) the four bytes in this register enable interrupts when the corresponding bit in t he status register is set. the default value for stmask is zero. when a bit in the stma sk register is set, an interrupt (irqz) is generated as soon as the corresponding b it in the status register is set. interrupts indicated by irqz do not necessarily have to be synchronized with accumulation intervals. for example, the toggling of a signal applied to the dio pins (d0d7), when the interrupt is enabl ed with the dio_int_ctrl register, can cause an interrupt at any time. registers controlling temperature measurement and compensation deg_scale ( 0x1c ) this register holds the scale factor used to calculate the internal temper ature value provided by the temperature sensor to temperature in degrees celsius (c). the default value is 227 21 and should not be changed. freq_delta _t ( 0x11 ) this register holds frequency and temperature information in two bytes each. 31 16 15 0 frequency (see output registers) delta_t bits 15 - 0: these bits ( delta_t ) represent the temperature information relative to the value stored in the temp_nom register. one lsb is equivalent to 0.1c. the formula used for delta_t is: delta_t = - degscale *2 - 22 *( temp_raw - temp_nom ) temp_nom ( 0x13 ) this register holds the nominal (reference) temperature. during calibration , the host must write the value read from temp_raw to temp_nom in order to enable temperature compensation. see the meter calibration section for details. the temperature available in register delta_t is based on the difference between the current temperature, as provided in temp_raw , and the reference temperature provided by temp_nom. temp_raw ( 0x12 ) this read - only register holds the raw temperature provided by the temperature sens or on the 71m6515h chip. during calibration, the host must write the value read from temp_raw to temp_nom in order to enable temperature compensation. example: at calibration time, the raw temperature value of 853030 was read from the temp_raw register and written to the temp_nom register. at a later time, the raw temperature register r eads 844866. the 71m6515h calculates the temperature difference to: delta_t = - degscale *2 - 22 *( temp_raw - temp_nom ) = 44 this value is interpreted as +4.4 c. ppmc1_2 ( 0x1b ) this register holds the linear and squared compensation factors for the adc temperature compensation. the allowed range is (2 15 C 1) to C (2 15 C 1). both words are reset to zero if temp_nom equals zero. 31 16 15 0 ppmc = adc linear factor (ppmc = 26.84 * ppm/c ) ppmc2 = adc quadratic factor (ppmc2 = 1374 * ppm/c 2 ) downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 42 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand the 71m6515h performs adc temperature compensation by computing a gain adjustment factor f or both the voltage and current samples per the following e quation: gain_adj= 16384+floor(1+delta_t*ppmc/2 14 +delta_t 2 *ppmc2/2 23 ) changes to ppmc1_2 by the host are on ly allowed if the default_ppm bit in the config register is zero. if additional temperature compensation by the host, e.g. for external components, is required, the procedure is as follows: 1) the host sets the default_ppm bit in the config register to 1 and then reads ppmc and ppmc2 . 2) the host then adds the compensation factors to ppmc and ppmc2, resets the default_ppm bit in the config register to 0 and then writes the modified values to ppmc and ppmc2. y_deg0 ( 0x18 ) this register holds the constant compensation factor for the rtc temperatur e compensation. one lsb is equivalent to 0.1ppm. bits 31 - 16: these bits ( y_cal c0 ) represent the constant compensation factor. y_deg1_2 ( 0x19 ) this register holds the linear and quadratic compensation factors fo r th e rtc temperature compensation. 31 16 15 0 y_cal c1 = linear compensation factor. one lsb is equi - valent to 0.01ppm/ y_cal c2 = quadratic compensation factor. one lsb is equi valent to 0.001ppm/c both y_deg0 and y_deg1_2 can be used to compensate the rtc to be accurate over the whole temper ature range b y characterizing the crystal. registers for output signals pulsew_r_cnts ( 0x41 ) this register contains the pulse count for the pulsew and pulser output pins for the past accumulation interval. the counters will be cleared at the beginning of each accumulation interv al and then start counting up with each generated pulse. bit 15 - 0: the counter for the pulser (varh) generator. bit 31 - 16: the counter for the pulsew (wh) generator. 31 16 15 0 counter for the pulsew generator (wh) counter for the pulser generator (varh) at pulse rates that do not result in generation of whole counts per accumulation interval, e.g. 3 1/3 pulses, the coun t equivalent to the next lower natural number will be generated until the residue accumulates to a full count, i.e. the pulse sequence generated will be 3, 3, 3, 4, 3, 3, 3, 4 pulse3_4_cnts ( 0x42 ) this register contains the pulse count for the pulse3 and pulse4 output p ins for the accumulation interval . the counters will be cleared at the beginning of each accumulation interval and then start counting up with each generated pulse. bit 15 - 0: the counter for the pulse4 generator. bit 31 - 16: the counter for the pulse3 generator. 31 16 15 0 downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 43 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand counter for the pulse3 generator counter for the pulse4 generator downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 44 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand iasqsum ( 0x39 ) , ibsqsum ( 0x3a ) , icsqsum ( 0x3b ) these registers hold the sum of the squared current samples collected during the pr evious accumulation interval. the values for iasqsum, ibsqsum, and icsqsum are provided directly by the ce and are not post - processed. the magnitude of the accumulated samples is determined by: h a in imax lsb 2 13 2 2 10 4045 .9 8_ ? ? = iasqfract ( 0x4a ) , ibsqfract ( 0x4b ) , icsqfract ( 0x4c ) these read - only registers hold the difference between the 10 - bit residual squared current sum of the current accumulation interval and the 10 - bit residual squared current sum of the previous interval. if iasqsum, ibsqsum, or icsqsum are used to calculate current, the value obtained over several accumulat ion intervals will be accurate due to averaging, but the individual values will have a higher uncertainty than when using iasqfract, ibsqfract, and icsqfract. the most accurate calculation of the squared cur rent for a phase x (ixsq) uses the formula: ixsq = ixsqsum + 2 - 10 ixsqfract insqfract ( 0x4d ) this register holds the difference between the 10 - bit residual squared neutral currents of the current accumulation interva l and the 10 - bit residual squared neutra l currents of the previous interval. the value can be used to improve the accur acy of the squared neutral current reading by applying the formula: insq = insqsum + 2 - 10 insqfract insqsum ( 0x3c ) this register holds the sum of the square of the calculated ne utral current collected during the previous accumulation interval. the calculation is implementing the following equation: ( ) + + = 2 2 1 0 i i i insqsum the magnitude of the accumulated samples is determined by: h a in imax lsb 2 13 2 2 10 4045 .9 8_ ? ? = iphase_abc ( 0x0f ) this register holds voltage - to - current phase information for all three phases. positive phase means lagging cur rent (inductive load). one lsb is equivalent to 1 degree. the range is f rom (2 8 C 1) to C (2 8 C 1). since the phase calculation involves the post - proce ssor , these registers will not be functional when the ce_only bit in the config register is set. bits 8 - 0: these bits ( iphase_c ) represent the voltage - to - current phase angle in phase c. bits 17 - 9: these bits ( iphase_b ) represent the voltage - to - current pha se angle in phase b. bits 26 - 18: these bits ( iphase_a ) represent the voltage - to - current phase angle in phase a. irms_a ( 0x0c ) , irms_b ( 0x0d ) , irms_c ( 0x0e ) these registers hold the post - processed rms current for each phase. only the 16 most significant bits are used. the magnitude of the values is determined by: rms a cycles sum in imax lsb _ 8_ 10 8781 .6 9 ? ? = downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 45 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand since the rms calculation involves the post - processor , these registers will not be functional when the ce_only bit in the config register is set. if higher precision is required, the host must calculate the rms currents from the values in the iasqsum, ibsqsum, and icsqsum registers. for even higher precision, the iasqfract, ibsqfract, icsqfract registers should be used. example : the register irms_ c reads the value 2,079,670. assuming imax to be 208a, and using the formula above, we determine the rms current of phase c to: a i rms 0385 .0 60 208 10 8781 .6 2079670 9 = ? ? = ? vasqsum ( 0x3d ) , vbsqsum ( 0x3e ) , vcsqsum ( 0x3f ) these registers hold the sum of the squared voltage samples collected during t he previous accumulation interval. the values for vasqsum, vbsqsum, and vcsqsum are provided directly by the ce and are not post - processed. the magnitude of the accumulated sampl es is determined by: h v vmax lsb 2 13 2 10 4045 .9 ? ? = vah_a ( 0x06 ) , vah_b ( 0x07 ) , vah_c ( 0x08 ) these registers hold the apparent energy collected during the previous accumulati on interval. the magnitude of the accumulated samples is determined by: vah in imax vmax lsb 8_ 10 4045 .9 13 ? ? = since the vah calculation involves the post - processor , these registers will not be functional when the ce_only bit in the config register is set. varh_a ( 0x03 ) , varh_b ( 0x04 ) , varh_c ( 0x05 ) these registers hold the reactive energy collected during the previous accumulation interval. the magnitude of the accumulated samples is determined by: varh in imax vmax lsb 8_ 10 4045 .9 13 ? ? = vphase_abc ( 0x10 ) this register holds the phase angle between the voltages of phases a /c and a/b. the lsb is one degree. bits 15 - 0: these bit s ( vphase_ac ) hold the phase angle between va and vc. bits 31 - 16: these bits ( vphase_ab ) hold the phase angle between va and vb. vrms_a ( 0x09 ) , vrms_b ( 0x0a ) , vrms_c ( 0x0b ) these registers hold the post - processed rms voltage for each phase. only the 16 mos t significant bits are used. the magnitude of the values is determined by: rms v cycles sum vmax lsb _ 10 8781 .6 9 ? ? = since the rms calculation involves the post - processor , these registers will not be functional when the ce_only bit in the config register is set. downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 46 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand if higher precision is required, the host must calculate the rms voltages from the values in the vasqsum, vbsqsum, and vcsqsum registers. example : the register vrms_b reads the value 425,778,000. assuming vmax to be 600v, and using the formula above, we determine the rms voltage of phase b to: v v rms 85.226 60 600 10 8781 .6 425778000 9 = ? ? = ? wh_a ( 0x00 ) , wh_b ( 0x01 ) , wh_c ( 0x02 ) these registers hold the real energy collected during the previous acc umulation interval. the magnitude of the values is determined by: wh in imax vmax lsb 8_ 10 4045 .9 13 ? ? = example : the register wh_a reads the value 236,675 for one accumulation interval of one second. ass uming 600v for vmax, 208a for imax, and unity gain, we determine the real e nergy to be: e = 236,675*600*208*9.4045*10 - 13 wh = 0.0277781wh. by multiplying with 3,600, we get 100wh/h, which means the applied power is 100w. freq_delta _t ( 0x11 ) this register holds frequency and temperature information in two bytes each. bits 31 - 16: these bits ( frequency ) represent the frequency of the input signal selected with the f_select bit of the config register. one lsb is equivalent to 0.1hz. main_edge_cnt ( 0x35 ) this register holds the number of zero crossings of the input phase selected by the f_select bits in t he config register detected in the previous accumulation interval. the value in main_edge_cnt can be used by the host to correct its own rtc or to synchronize events to the line voltage. registers controlling alarms and thresholds creep_thrsld ( 0x1d ) the f our bytes written to this register determine the creep threshold. setting a c reep threshold helps suppressing i2h, wh and varh readings when the values of wsum and varsum are determine d to be below the creep threshold. example: the creep threshold of a meter operating with an accumulation interval of 100 0ms is to be configured to be 15ma at 240v. the meter is using a vmax of 600v, an imax of 20 8a, and is not using the additional gain of 8. the numerical value for the creep_thrsld register is to be determi ned. with 15ma, the power per phase will be 3.6w, or 0.001wh per second. with the lsb of ws um readings given as 9.4045*10 - 13 *vmax*imax [wh], we determine the value to: n = 0.001wh / (9.4045*10 - 13 *vmax*imax /in_8 wh) = 8520.2 the rounded down value of 8520 is written to the creep_thrsld register. sag ( 0x2e ) this register holds the voltage and timing threshold for sag detec tion. bits 15 - 0: these bits ( sag_cnt ) hold the sag count. a sag condition must persist for at least sag_cnt samples before a sag alarm is generated. the allowed range is 1 to (2 15 - 1), and the default is 80 (31.7ms). the time period defined by sag_cnt is: t = sag_cnt *397 s downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 47 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand bits 31 - 16: these bits ( sagthr ) hold the voltage threshold that is to be applied for sag detection. the peak voltage mus t exceed sagthr once each sag_cnt samples in order to prevent a sag warning. one lsb is defined as: vmax lsb 9 16 10 2 8798 .7 ? ? ? = example: a meter operating at 50hz and 240v (rms) is supposed to apply a sag threshold of 180v (rms) for at least four periods befo re a sag warning is issued. vmax is 600v. which values are to be selected for sag ? four periods translate to t = 4 * 20ms = 80ms. this means that sag_cnt = t/ 397 s = 202. 180v (rms) translate to 255v (peak), so sagthr is determined by 823 600 10 2 8798 .7 255 255 9 16 = ? ? = = ? lsb sagthr start_threshld ( 0x40 ) this register holds the voltage and current thresholds that apply to the calculation of frequency, zero crossings, voltage phase and energy values. if the current is below the value stored in i_start , calculation of rms current, and energy (wh, varh and vah) is suppressed. bits 15 - 0: these bits ( i_start ) hold the threshold to be applied for under - current. if isqsum< i_start , all post - processed values are set to zero for that phase. this includes repor ted values f or wh, varh, vah, irms, vphase, iphase, pulser, pulsew, pulse3 and pulse4. this applies only if creep_thrsld is not set to zero. one lsb is defined as: ha in imax lsb 2 13 2 10 4045 .9 8_ ? ? ? = elements with isqsum< i_start will set the creep bits in the status register. bits 31 - 16: these bits ( v_start ) . hold the threshold to be applied for under - voltage. if vrms< v_start , the values for frequency (register freq_delta_t ), zero crossings (register main_edge_cnt ), and voltage phase (register v_phase_abc ) are set to zero. addi tionally, if vrms< v_start, the reported value of vrms is set to zero. one lsb is defined as: h v vmax lsb 2 13 16 2 10 4045 .9 2 ? ? ? ? = elements with vrms< v_start will not set the creep bits in the status register. vi_pthreshold ( 0x17 ) this register holds the threshold for over - voltage and over - current alarms. bits 15 - 0: these bits ( i_pthreshold ) hold the threshold to applied for over - current alarm. the threshold comparison is applied to the upper 16 bits of the values in irms : one lsb is defined as: rms a cycles sum in imax lsb _ 8_ 10 76. 450 6 ? ? = bits 31 - 16: these bits ( v_pthreshold ) . hold the threshold to applied for over - voltage alarm. the threshold comparison is applied to the upper 16 bits of the values in vrms one lsb is defined as: downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 48 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand rms v cycles sum vmax lsb _ 10 76. 450 6 ? ? = example: a meter designed with vmax=600v and imax=208a is supposed to apply an overvoltage threshold of 520v (rms) and an over - current threshold of 400a (rms). which values are to be selected for v_pthreshold and i_pthreshold ? 893 ,14 _ 600 10 76. 450 520 520 _ 6 = ? = = ? cycles sum lsb pthreshold v 046 ,33 _ 208 10 76. 450 400 400 _ 6 = ? = = ? cycles sum lsb pthreshold i registers controlling time and rtc functions op_time ( 0x1e ) this register holds the operating time expressed in 1/100 hours. the r egister will be reset to zero whenever the host writes time or date to the rtc. rtc_date ( 0x20 ) this register holds the date information provided by the rtc. the register can be written to in order t o set the date. bits 15 - 8: these bits contain the year information (0 to 255). the value 0 re presents the year 2000. bits 23 - 16: these bits contain the month information (01 to 12). the value 01 represents january. bits 31 - 24: these bits contain the day of month information (01 to 31). rtc_time_day ( 0x1f ) this register holds the time and day information provided by the rtc. t he register can be written to in order to set the time. bits 7 - 0: these bits contain the day of the week (01 to 07). the value 01 represents sunday. bits 15 - 8: these bits contain the hour information (00 to 23). the value 00 repr esents midnight. bits 23 - 16: these bits contain the minutes information (00 to 59). bits 31 - 24: these bits contain the seconds information (00 to 59). example : the value 200835 is read from the op_time register. this means that the meter has been running since the last reset or power - up for t = 800850/100h = 8008.50h or 8,008h and 30 minutes (333.6875 days or 333 days and 16.5h). registers used for test functions rtm ( 0x21 ) this register controls the real - time monitor. when the rtm_en bit in the config register is set, the values of ce ram locations specified with the rtm register can be routed to the tmux pin as a serial data stream. the t mux bits in the config register must be set to 3 in order to select the rtm output for the tmux pin. bits 7 - 0: these bits ( rtm3 ) select the ce address for rtm3. downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 49 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand bits 15 - 8: . these bits ( rtm2 ) select the ce address for rtm2. bits 23 - 16: these bits ( rtm1 ) select the ce address for rtm1. bits 31 - 24: these bits ( rtm0 ) select the ce address for rtm0. ssi ( 0x22 ) this register controls the function of the serial synchronous interface ( ssi). the function of the ssi is described in the internal resources section of this data sheet. if the ssi is enabled (bit 23, ssi_en , in the ssi register), a block of cnt words starting at the address beg will be transmitted each 397s. bits 7 - 0: these bits ( cnt ) select the number of ce ram address locations to be transmitted. the value in cnt must be >= 0. bits 15 - 8: these bits ( beg ) define the start address of the transfer region of the ce data ram address. bit 16: this bit must be set to zero. bit 17: this bi t must be set to zero . bit 18: this bit ( ssi_fpol ) defines the polarity of the sfr pulse signal (0: positive, 1: ne gative) . bits 20 - 19: these bits ( ssi_fsize ) define the frame pulse format as follows: bit 20 bit 19 ssi_fsize ssi frame pulse format 0 0 0 once at beginning of ssi sequence 0 1 1 every 8 bits 1 0 2 every 16 bits 1 1 3 every 32 bits bit 21: this bit ( ssi_cgate ) enables the clock to be gated. when low, the s s clk signal is active continuously, when high, the ssclk signal is held low when no data is being transferred. bit 22: this bit ( ssi_10m ) defines the speed of the ssclk signal: 0: 5mhz, 1: 10mhz. bit 23: this bit ( ssi_en ), when set to 1, enables the ssi interface. registers used for i/o control d_config ( 0x1a ) this register holds three bytes that are used to manipulate th e dio pins of the 71m6515h. bits 7 - 0: these bits ( dio_value ) form the data register for the dio pins d0 through d7. when a byte is written to dio_value, the pins configured as outputs (using the d_dir register) will change their state accordingly. pins configured as inputs will ignore the byte written to dio_value . reading dio_value will return a byte that reflects the state of all pins regardl ess whether they are configured as inputs or outputs. bits 15 - 8: these bits are not used bits 23 - 16: these bits ( d_dir ) define the data direction. bit 0 controls the d0 pin, bit 7 controls the d7 pin. setting the bit corresponding to a pin to 1 makes the pin an output, clearing it to 0 makes it an input. bits 31 - 24: these bits ( dio_int_ctrl ) form a mask enabling the dedge interrupt (bit 9 of the status word register). bit 8 controls the d0 pin, bit 15 controls the d7 pin. setting the bit corresponding to a pin to 1 enables the dedge interrupt, clearing the bit disables the interrupt. if the bit in dio_int_c trl is set and a tra nsition from high to low or from low to high occurs, the dedge interrup t bit in the status word register will be set in the following accumulation interval. downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 50 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand example: dio pins d0 through d3 are to be configured as outputs, while d4 through d 7 are to be inputs. dio7 must generate a dedge interrupt when the input value changes, and d0 through d3 must apply the hexadecimal pattern 0x05. this makes the selection for the d_config registers as follows: dio_intctrl = 0x80, d_dir = 0x0f, dio_value = 0x05 the values are combined into the 32 - bi t pattern 0x800f0005. example: d0 through d5 are to be configured as outputs, while d6 and d7 are to be inputs. d6 and d7 must generate a dedge interrupt when their input value changes. this makes the selection f or the d_config registers as follows: d io_intctrl = 0xc0 , d_dir = 0x3f the values are combined into the 32 - bit pattern 0xc03f0000. downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 51 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand registers in numerical order address name address name address name 0x00 wh_a 0x20 rtc_date 0x40 start_thr e shld 0x01 wh_b 0x21 rtm 0x41 pulsew_r_cnts 0x02 wh_c 0x22 ssi 0x42 pulse3_4_cnts 0x03 varh_a 0x23 reserved 0x43 pulse_srcs 0x04 varh_b 0x24 cal_ia 0x44 vfeed_a 0x05 varh_c 0x25 cal_va 0x45 vfeed_b 0x06 vah_a 0x26 cal_ib 0x46 vfeed_c 0x07 vah_b 0x27 cal_vb 0x47 0x08 vah_c 0x28 cal_ic 0x48 0x09 vrms_a 0x29 cal_vc 0x49 0x0a vrms_b 0x2a phadj_a 0x4a iasqfract 0x0b vrms_c 0x2b phadj_b 0x4b ibsqftact 0x0c irms_a 0x2c phadj_c 0x4c icsqfract 0x0d irms_b 0x2d wrate 0x4d insqfract 0x0e irms_c 0x2e sag 0x4e gain_adj 0x0f iphase_abc 0x2f kvar 0x10 vphase_abc 0x30 apulsew 0x11 freq_delta_t 0x31 apulser 0x12 temp_raw 0x32 apulse3 0x13 temp_nom 0x33 apulse4 0x14 status 0x34 pulse_width 0x15 stmask 0x35 main_edge_cnt 0x60 ce_prog_addr 0x16 config 0x36 quant_w 0x61 ce_data_addr 0x17 vi_pthresh 0x37 quant_var 0x62 ce_prog 0x18 y_deg0 0x38 quant_i 0x63 ce_data 0x19 y_deg1_2 0x39 iasqsum 0x64 ce_prog_inc 0x1a d_config 0x3a ibsqsum 0x65 ce_data_inc 0x1b ppmc1_2 0x3b icsqsum 0x1c deg_scale 0x3c insqsum 0x1d creep_thrsld 0x3d vasqsum 0x1e op_time 0x3e vbsqsum 0x1f rtc_time_day 0x3f vcsqsum downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 52 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand application information meter circuits bits 7 through 5 ( equ ) of the config register allow the selection of the metering equation that is to be implemente d by the 71m6515h. the equation to be used depends on the meter configuration. figure 15 shows how the 71m6515h is connected for the most common configuration , the three - phase, four - wire wye. the neutral wire connects to v3p3a. for this configuration, equation 5 m ust be selected. load a a n ct 71m6515h ia v3p3a va distribution transformers ansi: form 16s equ = 5 b load b ic p=va*ia+vb*ib+vc*ic ct c load c ct ib vbvc figure 15 : 4 - wire 3 - phase wye connection in many three - phase three - wire configurations, one phase can be grounded, as shown in figure 16 . again, the grounded wire is connected to v3p3a. for this configuration, equation 2 must be se lected. the four - wire three - phase delta configuration is shown in figure 19 . in this case, the center tap of the transformer that provides the a - c voltage is grounded. the grounded wire is connected to v3p3a. for this configuration, equation 2 must be selected. for this configuration, equation 3 must be selected, i.e . p = va*(ia - ib)/2 + vc*ic. downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 53 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand equ = 2 p=va*ia+vb*ib 71m6515h ia v3p3a vc ic load a ib va vb a b c load b figure 16 : 3 - wire 3 - phase delta connection 71m6515h ia v3p3a vc load b ic load a ib va vb a b c load c neutral figure 17 : 4 - wire 3 - phase delta connection downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 54 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand communication between the 71m6515h and the host processor general to ensure proper transfer of energy and other values from the 71m6515h to the host, the output da ta of the 71m6515h must be read by the host each time they are ready, and no energy - related datum can be missed. this requires close syn chroniza - tion between the 71m6515h and the host. control signals figure 18 shows the control signals between the 71m6515h and the host processor. thes e signals are: 1) tx: serial transmit output pin of the 71m6515h 2) rx: serial receive input pin of the 71m6515h 3) irqz: interrupt output, used as data ready hardware signal of t he 71m6515h (low - active) 4) resetz: reset input pin of the 71m6515h (low - active, should be pulled up to v3p3) 5) uartcsz: uart reset input pin of the 71m6515h (low - active) 6) baud_rate: baud rate select input pin of the 71m6515h (optional) 7) pulse_init: pulse polarity select input pin of the 71m6515h (optional) tx and rx are the most essential signals for the communication between the 71m6515h and the host processor. the irqz pin provides a useful output signal that can be used by the host to determi ne whether the 71m6515h has fresh data ready. irqz can be connected to either an interrupt input or general i/o i nput of the host processor. resetz can be used to force a hardware reset of the 71m6515h, and uartcsz can be used to reset (purge ) the uart of the 71m6515h communication buffers for reconfiguration. the additional pins baud_rate an d pulse_init can be hard - wired for configuring the communication baud rate and the pulse status , or controlled on power up by the host processor. figure 18 : co nnections between 71m6515h and h ost note that the dio pins of the host processor used to control the 71m6515h are not lost, s ince the 71m6515h can provide eight dio pins ((dio0dio7) to act as general - purpose dio pins. since the communication between the 71m6515h and its host is based on a binar y protocol, it is imperative for the host to issue a clean character stream without added bytes (uart driver s of high - level operating systems often add extra bytes to the charac ter stream, relying on error - detecting protocols). in case the 71m6515h l os es synchroniz ation due to un ex pected bytes sent by the host, it times out after 10ms (maximum 20ms). the 71m6515h flags a time - out condition by setting the bootup 71m6515h host tx rx rx tx irqz irq or dio_1 resetz uartcsz dio_2 dio_3 baud_rate pulse_init dio_4 dio_5 dio0...dio7 dio 3.3v downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 55 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand flag in the stat us register. this happens because the incomplete or garbled data could have included a write command to the config register or other important registers. methods of control two different methods of control can be used by the host processor: 1) synchronization using the irqz pin of the 71m6515h (interrupt or dio pin polling method, see figure 19 ): a. interrupt method: the irqz pin of the 71m6515h is connected to a pin of the host proces sor that can generate an interrupt for the host processor. this is the easiest method for synchronization between the 71m6515h and the host. the config register of the 71m6515h is set up to generate an interrupt on t he irqz pin whenever fresh data are ready, and the interrupt service routine of the host processor reads the fresh data out of the 71m6515h. b. dio pin polling method : the irqz pin of the 71m6515h is connected to a dio pin of the host processor. the host processor polls the status of the dio pin as frequently as possible or through a timer - based polling method. the config register of the 71m6515h is set up to have the irqz pin to go low on eve ry fresh data ready status, and the timer - serviced polling of th e host processor will monitor the status of the dio pin and initiat e the serial communica tion when irqz is detected. for this method to be effective, the firmware of the host proces sor must maintain the timer interrupt to be the highest priority, followed by the serial communications priority. 2) polling the ready bit in the status word of the 71m6515h (status polling method, see figure 20 ). this method requires that the host processor utilizes a timer with 1ms to 5ms resolution tied into the highest - priority interrupt. the interrupt service routine must initiate reading t he s tatus register, preferably at least every 10ms, in order to monitor the ready bit, but the host processor must wait for the response of each sta tus request. otherwise, the status register read operations will be stacked in the 71m6515h resulting in multipl e responses. if a delayed response is received upon a status register read, the host processor will know that the 71m6515h is within its post - processing period, which makes it necessary hat the host waits for the response. every time the ready bit in the s tatus register is not set, indicating that data is not available, the host should poll again figure 19 : timing diagram (u sing irqz, sum_cycles = 12) the communication between the 71m6515h and the host processor can always be reset without disturbing the metering function by utilizing the uartcsz and baudrate pins. configuring the baudrate pin with out resetting the uart buffers is not recommended. the uart of the 71m6515h can be reset by pulling the uartcsz pin low. this will force the uart back into the default configuration while clearing all buffers (u art buffers, uart - related buffers in the firmware). 200ms 400ms 80ms read command from host read command from host post-processor active post-processor active 6515h data 6515h data time 80ms irqz 300ms 500ms downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 56 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand figure 20 : timing diagram (host p olling) communication steps for interrupt method: the following is a list of commands required from the host proce ssor to establish communication with the 71m6515h. 1) establish host baud rate and data format as required by the 71m6515h. 2) configure the dio pins (d0d7), if required, using the d_config register 3) configure the 71m6515h by selecting the ce image (bits 23 - 22), equation (bits 7 - 5), pulse rate (bits 26 - 25), followed by enabling the ce (bit 4 in the config register). the bit pattern sent to config should have all bits set to their default state, as given in the r egister table. 4) write the temp_raw value obtained at calibration into the tem_nom register to enable temperature compensation. 5) write the calibration coefficients into registers cal_ia, cal_va, cal_ib, cal_vb, cal_c, cal_vc, phadj_a, phadj_b, phadj_c . write calibration values to the vfeed_a/b/c registers if the rogowski image is used. 6) configure wrate with the value required to generate the desired pulse rate. 7) establish creep, sag and over/under voltage/current thresholds, if necessary, by wri ting values to the creep_thrsld, sag, vi_pthresh, and vi_thrshld registers. 8) set the ready bit in the status mask stmask in order to enable the generation of interrupts on t he irqz pin. 9) read at least one accumulated value register ( watth_x , or vah_x , or varh_x ). 10) wait for the irqz pin to go low. 11) after receiving the interrupt, read at least one accumulated value register ( watth_x , or vah_x , or varh_x ) in order to maintain interrupt generation. read the bits in the status word to detect potential faults (overflow signaled by the xovf flag or uninitialized condition signaled by the bootup flag) or warnings and events (sag, creep, excessive voltage or cu rrent, dio signal changes). if necessary, take corrective act ion. 12) after reading the required data from the 71m6515h, configuration changes should be made, if necessary. these con - figuration changes should be completed before the pre - processing period begin s again. 1000ms 2000ms 330ms read commands from host read commands from host 6515h not ready 6515h not ready post-processor active post-processor active 330ms 6515h data 6515h data time downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 57 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand timing the fundamental factor for all timing considerations is sum_cycles , which determines the length of the accumulation interval for the 71m6515h per the equation: hz cycles sum 6. 2520 42 _ ? = the default setting for sum_cycles is 60, which yields a n accumulation interval close to 1,000ms. a conservative minimum number for sum_cycles is 24, which yields an accumulation interval close to 400ms . both calculations by the post - proc essor in the 71m6515h and the communication between 71m6515h and the host have to be completed within the accumula tion interval. if an accumulation interval has passed, and the energy v alues have not been read by the host, they are lost for ever. in order to analyze the timing of the communication between the 71m6515h and the host, it is useful to know the basic timing requirements of the post - processor of the 71m6515h. some timing parameters are listed in table 8. ce_only vah calculation resulting calculation time disabled vector method: 2 2 varh wh vah + = 350ms disabled vrms*irms method 80ms enabled x 40ms table 8 : post - processor t iming as can be seen in table 8 , the calculation time can be greatly reduced if the vah values are calculated using t he method of multiplying vrms by irms (by resetting bit 0 in the config register), which is less accurate at low currents. further improvement can be achieved by disabling the post - processor using the ce_only bit in the config register. this is possible for applications where the registers iphase , irms , vah and vrms are not required. it becomes clear now that the minimum value of 24 for sum_cycles , equivalent to a 400ms accumulation interval, accom - modates the worst - case scenario, using the vector method, which requires 350ms post - processing time. this setting leaves around 50ms for the communication to take p lace between the 71m6515 and the host. if the simpler irms*vrms met hod is chosen for vah, a lower value can be selected for sum_cycles . lower values for sum_cycles , for example 12, yielding a 200ms accumulation interval, are possibl e, leaving still 120ms for host communications, as long as the vrms*irms method for vah is used. some other timing parameters are listed in table 9. parameter value comment time from power - up to uart being functional 370ms 10% time from hw reset to uart being functional 370ms 10% time from soft reset to uart being functional 245ms 10% soft reset = reset bit in config register is set high. time from uartcsz pin low to uart being func tional 20ms uartcsz is polled just before the 71m6515h checks its data buffer for a command. this means that the command latency specified in the electrical specifi - cations section also applies to the uartcsz pin. table 9 : uart t iming p arameters downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 58 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand package outline 11.7 12.3 0.60 typ. 1.40 1.60 11.7 12.3 0.00 0.20 9.8 10.2 0.50 typ. 0.14 0.28 pin no. 1 indicator + note: controlling dimensions are in mm ordering information part description order no. packaging mark 71m6515h 64 - pin lqfp lead - free, 10ppm/ c vref 71m6515h - igt/f 71m6515h - igt 71m6515h 64 - pin lqfp lead - free, 10ppm/ c vref , t&r 71m6515h - igtr/f 71m6515h - igt 71m6515h 64 - pin lqfp lead - free , 40ppm/ c vref 71m6515h - igt w /f 1 71m6515h - igt w 71m6515h 64 - pin lqfp lead - free , 4 0ppm/ c vref , t&r 71m6515h - igtwr/f 1 71m6515h - igtw 1 71m65 1 5h - igtw requires program loading by the customer . please contact factory for more information. downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 59 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand revision history revision date description rev. 1.0 october 26, 2005 first publication. rev. 1.1 december 11, 2006 changed capacitor values for xin/xout corrected addresses for ce_data and m ade addresses ce_data etc. visible in table registers in numerical order. c hanged f requency range to 46 - 64hz and real - time clock for tou to real - time clock with temperature compensation on title page. added complete chapter on communication between host and 6515h. changed pin name v1 to vflt in electrical specification . consolidated spelling for creep_thrsld register. added explanation for x in formula for wrate. added information on processing time for registers involving post - processing. changed default value for wrate to 683. deleted note on low - pass filter in the ce in config register d escription. added note at config register description stating that phase with stable voltage can be selected with f_select t o avoid inaccurate measurements and note stating that pulse_slow and pulse_fast affect all four pulse sources . a dded diagram connections between 71m6515h a nd host. rev. 1.2 march 15, 2007 added i/o equivalent c ircuit diagrams and circuit type numbers in pin descriptions. added note in pin descriptions stating that the voltage at rx must not exceed 3.6v. added vref aging data. clarified polarity of ssdat an d ssclk pins . rev. 1.3 august 17, 2007 changed recommended value for capacitors at xin/xout to 22pf. changed recommended crystal to ecs ecx - 3ta series. added note on exact length of default accumulation interval. corrected bit locations for d_config register. added note in pin description for d0 - d7 and digital i/o section: d0 through d7 are high impedance after reset or power - up and are con figured as outputs and driven low 140ms after resetz goes high. updated default values for vipthresh and vi_thresh . rev. 1.4 march 5, 2008 changed pin and register names to pulsew and pulser and updated block diagram (figure 2), u pdated pin - out diagram with corrected pin names. removed comparator table in electrical speci fi cations . changed note for srdy in pin description table to srdy should be tied to ground, de leted figure 13 (srdy function) and removed all text describing t he function of srdy (excep t that srdy should be grounded), deleted figure 13 (ssi timing w/ srdy) and removed references to srdy in figure 12. consolidated spelling of y_calc etc. constants in section temper ature com - pensation for the crystal and rtc and in the register tables. added reference to fast calibration procedure (an_651x_022). added diagrams for metering configurations. impr oved table 6 and explanation of pulse_src register. changed capacitor values for xin/xout to 27pf and added recommended load capacitance value (12.5pf) . changed register name at location 0x38 from quant_v to quant_i . removed non lead - free packages from or dering information. updated teridian street address. added text at explanation of bits 14 - 12 of the status register stating that these bits are also set when the current is below the threshold defined by bit s 15 - 0 of the start_threshld register. added at explanation of start_threshld : elements with vrms< v_start will not set the creep bits in the status register and elements with isqsum< i_start will set the creep bits in the status register. downloaded from: http:///
71m6515h energy meter ic data sheet july 2011 page: 60 of 60 ? 2005 ? 2011 teridian semiconductor corporation 1.6 a maxim integrated products brand added value for r ja in electrical specification. rev 1.5 january 1 8 , 2011 changes for transition to maxim dc: - title page: deleted reference to temperature range in 0.1% wh accurac y statement. deleted protects accumulated data under battery backup. - deleted reference to patented technology - deleted figure 6 (typical meter accuracy over temperature) added guaranteed by design notes to electrical specifications. changed the crystal oscillator electrical specification typ from blank to 3. changed the capacitance to dgnd xin and xout typ from blank to 5. deleted the max values. changed the adc converter, v3p3 reference electrical specificatio n thd 250mv - pk typ from blank to - 75. changed the thd 20mv - pk typ from blank to - 90. deleted the max values. rev 1.6 july 8, 2011 added 71m6515h - igtw to the data sheet . added footnotes to vref and temperature sensor specifications. downloaded from: http:///


▲Up To Search▲   

 
Price & Availability of 71M6515H-IGTF

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X